Class/Object

io.scalajs.dom.collection

NamedNodeMap

Related Docs: object NamedNodeMap | package collection

Permalink

class NamedNodeMap[A] extends Object with JsCollection[A]

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.

A NamedNodeMap object is live and will thus be auto-updated if changes are made to its contents internally or elsewhere.

Annotations
@RawJSType() @native()
See also

https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap

Linear Supertypes
JsCollection[A], Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. NamedNodeMap
  2. JsCollection
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new NamedNodeMap()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(name: String): A

    Permalink

    Returns the specific node whose ID or, as a fallback, name matches the string specified by name.

    Returns the specific node whose ID or, as a fallback, name matches the string specified by name. Matching by name is only done as a last resort, only in HTML, and only if the referenced element supports the name attribute. Returns null if no node exists by the given name.

    name

    the specified name of the node

    returns

    the specific node

    Annotations
    @JSBracketAccess()
  5. def apply(index: Int): A

    Permalink

    Returns the element at the specified index

    Returns the element at the specified index

    index

    the specified index

    returns

    the element at the specified index

    Definition Classes
    NamedNodeMap → JsCollection
    Annotations
    @JSBracketAccess()
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getNamedItem(name: String): A

    Permalink

    Returns a specified attribute node from a NamedNodeMap

  13. def getNamedItemNS(namespace: String, name: String): A

    Permalink

    Returns a specified attribute node from a NamedNodeMap

    Returns a specified attribute node from a NamedNodeMap

    Example:
    1. document.documentElement.attributes.getNamedItemNS('http://www.w3.org/XML/1998/namespace', 'lang');

  14. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  18. def item(index: Int): A

    Permalink

    Returns the attribute node at a specified index in a NamedNodeMap

  19. def length: Int

    Permalink

    Returns the number of attribute nodes in a NamedNodeMap

    Returns the number of attribute nodes in a NamedNodeMap

    Definition Classes
    NamedNodeMap → JsCollection
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  24. def removeNamedItem(name: String): A

    Permalink

    Removes a specified attribute node

  25. def removeNamedItemNS(namespace: String, name: String): A

    Permalink

    Removes a specified attribute node

    Removes a specified attribute node

    Example:
    1. attrs.removeNamedItemNS('http://www.w3.org/1999/xhtml', 'lang')

  26. def setNamedItem(name: String): Unit

    Permalink

    Sets the specified attribute node (by name)

  27. def setNamedItemNS(namespace: String, name: String): Unit

    Permalink

    Sets the specified attribute node (by name)

    Sets the specified attribute node (by name)

    Example:
    1. document.setNamedItemNS('http://www.w3.org/XML/1998/namespace', 'lang')

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsCollection[A]

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped