Skip to content

feat: add matches method to HTMLElement#303

Merged
taoqf merged 3 commits intotaoqf:mainfrom
thomome:htmlElement-matches
Mar 3, 2026
Merged

feat: add matches method to HTMLElement#303
taoqf merged 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)

@taoqf taoqf merged commit 3e17619 into taoqf:main Mar 3, 2026
2 checks passed
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.

2 participants