DOMException
is thrown for selectors with an explicit empty attribute value
#881
Labels
bug
Something isn't working
Describe the bug
DOMException: Invalid selector
is thrown for an empty attribute value selector, e.g.[contenteditable=""]
or[disabled=""]
.To Reproduce
Expected behavior
Selector
[contenteditable=""]
should be considered correct.Device:
9.10.1
.Additional context
This is a regression introduced in
v9.10.0
.For reference
testing-library/user-event
uses this quite complex selector with empty attribute value to find focusable elements on the page: https://github.com/testing-library/user-event/blob/7a305dee9ab833d6f338d567fc2e862b4838b76a/src/utils/focus/selector.ts#L1The text was updated successfully, but these errors were encountered: