Selector attribute modifiers ~
and |
doesn't match valid elements
#914
Labels
bug
Something isn't working
~
and |
doesn't match valid elements
#914
Describe the bug
Modifiers
~
and|
doesn't match valid elements when attribute doesn't have whitespace or dash.To Reproduce
The following test will currently fail because none of elements will be matched.
Expected behavior
Selector
*[role~="menu"]
should match element with"role=menu"
Device:
Additional context
Introduced by changes in #913.
Interesting that this regression wasn't caught by
[class~="class2"]
test because elements inQuerySelectorHTML
have space, e.g.class="class1 class2"
The text was updated successfully, but these errors were encountered: