Search notes:

HTMLCollection

An HTMLCollection is a collection of elements (element nodes).
In spite of its name, a HTMLCollection can also contain non-HTML elements (compare for example with NodeList). This is because the name was chosen before modern DOM emerged.
The HTMLCollection is considered an old style collection and «a historical artifact we cannot get rid of». If possible, sequence<T> should be used instead.

Methods and properties

item()
length
namedItem()

See also

Becaue a HTMLCollection is a live object, the documentation recommends to make a copy with Array.from().
An HTMLCollection is for example returned by

Index