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

LibWeb: Add getElementsByTagNameNS and add support for * in non-NS

This also moves getElementsByTagName to ParentNode to remove the code
duplication between Document and Element. This additionally fixes a bug
where getElementsByTagName did not check if the element was a
descendant, meaning it would also include the context element if the
condition matched.
This commit is contained in:
Luke Wilde 2021-09-22 18:06:19 +01:00 committed by Andreas Kling
parent 5c7dca3526
commit d47e431d54
8 changed files with 70 additions and 24 deletions

View file

@ -11,6 +11,7 @@ interface Element : Node {
boolean hasAttributes();
HTMLCollection getElementsByTagName(DOMString tagName);
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
HTMLCollection getElementsByClassName(DOMString className);
// FIXME: This should come from a InnerHTML mixin.