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

LibWeb: Add a partial implementation of Element.setAttributeNS()

This implementation does some of the required validation and then passes
through the localName and value to Element.setAttribute().
This commit is contained in:
Andreas Kling 2022-02-05 18:21:49 +01:00
parent 2518f2045e
commit e2c71b6725
3 changed files with 59 additions and 0 deletions

View file

@ -6,6 +6,7 @@ interface Element : Node {
DOMString? getAttribute(DOMString qualifiedName);
undefined setAttribute(DOMString qualifiedName, DOMString value);
[CEReactions] undefined setAttributeNS(DOMString? namespace , DOMString qualifiedName , DOMString value);
undefined removeAttribute(DOMString qualifiedName);
boolean hasAttribute(DOMString qualifiedName);
boolean hasAttributes();