NamedNodeMap

abstract external class NamedNodeMap : ItemArrayLike<Attr> (source)

Platform and version requirements: JS

Exposes the JavaScript NamedNodeMap to Kotlin

Constructors

<init>

NamedNodeMap()

Exposes the JavaScript NamedNodeMap to Kotlin

Properties

length

open val length: Int

Functions

getNamedItem

fun getNamedItem(qualifiedName: String): Attr?

getNamedItemNS

fun getNamedItemNS(
    namespace: String?,
    localName: String
): Attr?

item

open fun item(index: Int): Attr?

removeNamedItem

fun removeNamedItem(qualifiedName: String): Attr

removeNamedItemNS

fun removeNamedItemNS(
    namespace: String?,
    localName: String
): Attr

setNamedItem

fun setNamedItem(attr: Attr): Attr?

setNamedItemNS

fun setNamedItemNS(attr: Attr): Attr?

Extension Functions

asList

fun <T> ItemArrayLike<T>.asList(): List<T>

Returns the view of this ItemArrayLike<T> collection as List<T>

get

operator fun NamedNodeMap.get(index: Int): Attr?
operator fun NamedNodeMap.get(qualifiedName: String): Attr?