package js.html
Available on js
The NamedNodeMap interface represents a collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array.
Documentation NamedNodeMap by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
read onlylength:IntReturns the amount of objects in the map.
getNamedItem(name:String):AttrReturns a Attr, corresponding to the given name.
getNamedItemNS(namespaceURI:String, localName:String):AttrReturns a Attr identified by a namespace and related local name.
item(index:Int):AttrReturns the Attr at the given index, or null if the index is higher or equal to the number of nodes.
removeNamedItem(name:String):AttrRemoves the Attr identified by the given map.
Throws:
null |
DOMError |
|---|
removeNamedItemNS(namespaceURI:String, localName:String):AttrRemoves the Attr identified by the given namespace and related local name.
Throws:
null |
DOMError |
|---|
setNamedItem(arg:Attr):AttrReplaces, or adds, the Attr identified in the map by the given name.
Throws:
null |
DOMError |
|---|
setNamedItemNS(arg:Attr):AttrReplaces, or adds, the Attr identified in the map by the given namespace and related local name.
Throws:
null |
DOMError |
|---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/NamedNodeMap.html