Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.7, 1.8, 1.13
-
None
-
None
Description
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).