Skip to content

Commit

Permalink
Move and simplify element.matches("*") test so that it works (#11229)
Browse files Browse the repository at this point in the history
The reason it didn't work before was because in Element-matches.js,
it's always `someElement.matches("*")` being tested, which is the only
thing that could be tested as there's not other "context" or
"reference node" involved in the API surface.

All of TEST_FIND is actually dead code, so dropping that is harmless.

Fixes #11212.
  • Loading branch information
foolip authored Jun 18, 2018
1 parent 53f7340 commit 7c0611d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dom/nodes/selectors.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7c0611d

Please sign in to comment.