NamedNodeMap

The NamedNodeMap interface represents a collection of Attr objects.

MDN Reference

Properties

Link copied to clipboard
open override val length: Int

The read-only length property of the NamedNodeMap interface is the number of objects stored in the map.

Functions

Link copied to clipboard
open operator fun get(index: Int): Attr
open operator fun get(key: Symbol.iterator): () -> JsIterator<Attr>
Link copied to clipboard
fun getNamedItem(qualifiedName: String): Attr?

The getNamedItem() method of the NamedNodeMap interface returns the Attr corresponding to the given name, or null if there is no corresponding attribute.

Link copied to clipboard
fun getNamedItemNS(namespace: String?, localName: String): Attr?

The getNamedItemNS() method of the NamedNodeMap interface returns the Attr corresponding to the given local name in the given namespace, or null if there is no corresponding attribute.

Link copied to clipboard
fun item(index: Int): Attr?

The item() method of the NamedNodeMap interface returns the item in the map matching the index.

Link copied to clipboard
open inline operator fun iterator(): Iterator<Attr>
Link copied to clipboard
fun removeNamedItem(qualifiedName: String): Attr

The removeNamedItem() method of the NamedNodeMap interface removes the Attr corresponding to the given name from the map.

Link copied to clipboard
fun removeNamedItemNS(namespace: String?, localName: String): Attr

The removeNamedItemNS() method of the NamedNodeMap interface removes the Attr corresponding to the given namespace and local name from the map.

Link copied to clipboard
fun setNamedItem(attr: Attr): Attr?

The setNamedItem() method of the NamedNodeMap interface puts the Attr identified by its name in the map.

Link copied to clipboard
fun setNamedItemNS(attr: Attr): Attr?

The setNamedItemNS() method of the NamedNodeMap interface puts the Attr identified by its name in the map.