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

LibWeb: Implement (most of) NamedNodeMap to store attributes

This commit is contained in:
Timothy Flynn 2021-10-16 15:30:21 -04:00 committed by Linus Groh
parent 454d218716
commit 2a3ac02ef1
6 changed files with 284 additions and 0 deletions

View file

@ -0,0 +1,14 @@
[Exposed=Window, LegacyUnenumerableNamedProperties]
interface NamedNodeMap {
readonly attribute unsigned long length;
getter Attribute? item(unsigned long index);
getter Attribute? getNamedItem(DOMString qualifiedName);
// Attribute? getNamedItemNS(DOMString? namespace, DOMString localName);
[CEReactions] Attribute? setNamedItem(Attribute attr);
// [CEReactions] Attribute? setNamedItemNS(Attribute attr);
[CEReactions] Attribute removeNamedItem(DOMString qualifiedName);
// [CEReactions] Attribute removeNamedItemNS(DOMString? namespace, DOMString localName);
};