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

LibWeb: Implement Element.hasAttributeNS

Particularly needed by xkcd's Right Click comic. https://xkcd.com/1975/
This commit is contained in:
Luke Wilde 2023-08-09 21:31:35 +01:00 committed by Tim Flynn
parent 3a98c48f20
commit 5694981352
3 changed files with 13 additions and 0 deletions

View file

@ -35,6 +35,7 @@ interface Element : Node {
[CEReactions] undefined removeAttribute(DOMString qualifiedName);
[CEReactions] boolean toggleAttribute(DOMString qualifiedName, optional boolean force);
boolean hasAttribute(DOMString qualifiedName);
boolean hasAttributeNS(DOMString? namespace, DOMString localName);
boolean hasAttributes();
[SameObject] readonly attribute NamedNodeMap attributes;
sequence<DOMString> getAttributeNames();