Interface NamedNodeMap

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.

MDN Reference

interface NamedNodeMap {
    length: number;
    getNamedItem(qualifiedName): Attr;
    getNamedItemNS(namespace, localName): Attr;
    item(index): Attr;
    removeNamedItem(qualifiedName): Attr;
    removeNamedItemNS(namespace, localName): Attr;
    setNamedItem(attr): Attr;
    setNamedItemNS(attr): Attr;
    [index: number]: Attr;
}

Indexable

[index: number]: Attr

Properties

length: number

Methods

  • Parameters

    • qualifiedName: string

    Returns Attr

  • Parameters

    • namespace: string
    • localName: string

    Returns Attr

  • Parameters

    • index: number

    Returns Attr

  • Parameters

    • qualifiedName: string

    Returns Attr

  • Parameters

    • namespace: string
    • localName: string

    Returns Attr

  • Parameters

    Returns Attr

  • Parameters

    Returns Attr