NamedNodeMap class

The interface represents a collection of Attr objects. Objects inside a are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array. A object is live and will thus be auto-updated if changes are made to its contents internally or elsewhere.

Note: Although called , this interface doesn't deal with Node objects but with Attr objects, which were originally a specialized class of Node, and still are in some implementations.

Available extensions
Annotations
  • @JS.new()
  • @staticInterop

Constructors

NamedNodeMap()
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
length → int

Available on NamedNodeMap, provided by the PropsNamedNodeMap extension

no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getNamedItem(String qualifiedName) → Attr?

Available on NamedNodeMap, provided by the PropsNamedNodeMap extension

getNamedItemNS(String? namespace, String localName) → Attr?

Available on NamedNodeMap, provided by the PropsNamedNodeMap extension

item(int index) → Attr?

Available on NamedNodeMap, provided by the PropsNamedNodeMap extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeNamedItem(String qualifiedName) → Attr

Available on NamedNodeMap, provided by the PropsNamedNodeMap extension

removeNamedItemNS(String? namespace, String localName) → Attr

Available on NamedNodeMap, provided by the PropsNamedNodeMap extension

setNamedItem(Attr attr) → Attr?

Available on NamedNodeMap, provided by the PropsNamedNodeMap extension

setNamedItemNS(Attr attr) → Attr?

Available on NamedNodeMap, provided by the PropsNamedNodeMap extension

toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited