mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 18:46:03 +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:
parent
2a38f008bf
commit
79bab28f5e
Notes:
sideshowbarker
2024-07-18 22:31:33 +09:00
Author: https://github.com/linusg
Commit: 79bab28f5e
Pull-request: https://github.com/SerenityOS/serenity/pull/5264
Reviewed-by: https://github.com/Lubrsi
3 changed files with 34 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue