1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:27:45 +00:00

LibWeb: Support Element.matches(selectors)

This returns whether an element matches any of a set of selectors.
This commit is contained in:
Andreas Kling 2021-09-30 02:16:36 +02:00
parent 439be913cf
commit 9d852623f2
3 changed files with 20 additions and 0 deletions

View file

@ -20,6 +20,8 @@ interface Element : Node {
[Reflect] attribute DOMString id;
[Reflect=class] attribute DOMString className;
boolean matches(DOMString selectors);
readonly attribute Element? nextElementSibling;
readonly attribute Element? previousElementSibling;