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

LibWeb: Implement Element.getElementsBy{Tag,Class}Name()

Just like the Document variants, but using the given Element as
for_each_in_subtree_of_type() root.
This commit is contained in:
Linus Groh 2021-02-07 23:44:01 +01:00 committed by Andreas Kling
parent 2a38f008bf
commit 79bab28f5e
3 changed files with 34 additions and 0 deletions

View file

@ -8,6 +8,9 @@ interface Element : Node {
boolean hasAttribute(DOMString qualifiedName);
boolean hasAttributes();
ArrayFromVector getElementsByTagName(DOMString tagName);
ArrayFromVector getElementsByClassName(DOMString className);
readonly attribute Element? firstElementChild;
readonly attribute Element? lastElementChild;