element.matches()
returns incorrect result for nested selector
#1472
Labels
bug
Something isn't working
element.matches()
returns incorrect result for nested selector
#1472
Describe the bug
element.matches(".k > .k")
returns incorrect result.To Reproduce
Steps to reproduce the behavior:
Run the following code, or open https://stackblitz.com/edit/stackblitz-starters-dngcid?file=index.mjs,package.json and run
node index.mjs
.Expected behavior
b.matches(selector)
should returnfalse
, but it returnstrue
.Device:
The text was updated successfully, but these errors were encountered: