[ 
https://issues.apache.org/jira/browse/BATIK-1108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alain Le Guennec updated BATIK-1108:
------------------------------------
    Attachment: batik-css-patch.diff

Proposed patch to fix the issue.

> 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
>         Attachments: batik-css-patch.diff
>
>
> 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-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org

Reply via email to