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
commit 2a3ac02ef1
Notes: sideshowbarker 2024-07-18 02:16:29 +09:00
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);
};