xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McCormack <...@mcc.id.au>
Subject Re: css parser bug?
Date Wed, 28 May 2008 00:36:36 GMT
Hi Martin.

Martin Zdila:
> > i want to use css parser from batik project. unfortunately i've found one
> > issue. the problem is that "FOO[attr] #bar" selector is parsed
> > as "FOO[attr]#bar". is that a bug or am i missing something?
> 
> i found out this is really a bug. it can be fixed by applying attached patch.

> Index: sources/org/apache/batik/css/parser/Parser.java
> ===================================================================
> --- sources/org/apache/batik/css/parser/Parser.java	(revision 660421)
> +++ sources/org/apache/batik/css/parser/Parser.java	(working copy)
> @@ -724,7 +724,7 @@
>                  default:
>                      throw createCSSParseException("right.bracket");
>                  case LexicalUnits.RIGHT_BRACKET:
> -                    nextIgnoreSpaces();
> +                    next();
>                      c = conditionFactory.createAttributeCondition
>                          (name, null, false, null);
>                      break;
> 

That patch looks good and I’ve applied it, thanks!

Cameron

-- 
Cameron McCormack ≝ http://mcc.id.au/

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Mime
View raw message