HTMLCollection class
The interface represents a generic collection (array-like object
similar to arguments
) of elements (in document order) and
offers methods and properties for selecting from the list.
Note: This interface is called for historical reasons (before the modern DOM, collections implementing this interface could only have HTML elements as their items).
An in the HTML DOM is live; it is automatically updated when the
underlying document is changed. For this reason it is a good idea
to make a copy (eg. using Array.from
) to iterate over if
adding, moving, or removing nodes.
- Implementers
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- HTMLCollection()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited