summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/NamedNodeMap.idl
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-10-16 15:30:21 -0400
committerLinus Groh <mail@linusgroh.de>2021-10-17 13:51:10 +0100
commit2a3ac02ef1e84e0b772dff99cf5f2e66c9e1fe7e (patch)
treeef64e451992abae39933384e0a3406d2083125bf /Userland/Libraries/LibWeb/DOM/NamedNodeMap.idl
parent454d21871642671b715f53e3e244b980943e205a (diff)
downloadserenity-2a3ac02ef1e84e0b772dff99cf5f2e66c9e1fe7e.zip
LibWeb: Implement (most of) NamedNodeMap to store attributes
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/NamedNodeMap.idl')
-rw-r--r--Userland/Libraries/LibWeb/DOM/NamedNodeMap.idl14
1 files changed, 14 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/NamedNodeMap.idl b/Userland/Libraries/LibWeb/DOM/NamedNodeMap.idl
new file mode 100644
index 0000000000..68f889a5bb
--- /dev/null
+++ b/Userland/Libraries/LibWeb/DOM/NamedNodeMap.idl
@@ -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);
+};