You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Alain Le Guennec (JIRA)" <ji...@apache.org> on 2015/02/09 13:53:34 UTC

[jira] [Created] (BATIK-1108) Bug in CSSOneOfAttributeCondition prevents correct matching of some elements

Alain Le Guennec created BATIK-1108:
---------------------------------------

             Summary: Bug in CSSOneOfAttributeCondition prevents correct matching of some elements
                 Key: BATIK-1108
                 URL: https://issues.apache.org/jira/browse/BATIK-1108
             Project: Batik
          Issue Type: Bug
          Components: CSS
    Affects Versions: 1.7, 1.8, trunk
            Reporter: Alain Le Guennec


There is bug in CSSOneOfAttributeCondition that prevents correct matching of some elements.
For instance, for a selector like "E[a~='B']", elements like <E a="ABC B"/> or <E a="B ABC"/> should both match.
But only the second will actually match with the current code.
For the first case, the "B" in "ABC" will first be considered, but since it's not a full-word match, it is (correctly) rejected, but matching stops there instead of going-on with the next occurrence of "B" (which is the one that matches).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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