Skip to content

feat: add matches method to HTMLElement#303

Open
thomome wants to merge 3 commits intotaoqf:mainfrom
thomome:htmlElement-matches
Open

feat: add matches method to HTMLElement#303
thomome wants to merge 3 commits intotaoqf:mainfrom
thomome:htmlElement-matches

Conversation

@thomome
Copy link

@thomome thomome commented Mar 1, 2026

Added the method matches(selector: string): boolean on HTMLElement.
This allows to test whether a node matches with a given CSS selector.
(should be equivalent to https://developer.mozilla.org/en-US/docs/Web/API/Element/matches)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant