mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:17:44 +00:00
LibWeb: Support Element.closest(selectors)
This commit is contained in:
parent
70ede2825e
commit
c646afc26c
3 changed files with 28 additions and 0 deletions
|
@ -25,6 +25,7 @@ interface Element : Node {
|
|||
[SameObject, PutForwards=value] readonly attribute DOMTokenList classList;
|
||||
|
||||
boolean matches(DOMString selectors);
|
||||
Element? closest(DOMString selectors);
|
||||
|
||||
// legacy alias of .matches
|
||||
[ImplementedAs=matches] boolean webkitMatchesSelector(DOMString selectors);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue