Definition
DOM Standard defines HTMLCollection
[Exposed=Window, LegacyUnenumerableNamedProperties]
interface HTMLCollection {
readonly attribute unsigned long length;
getter Element? item(unsigned long index);
getter Element? namedItem(DOMString name);
};
Methods and attributes that return objects implementing HTMLCollection
Document.getElementsByTagName()
Document.getElementsByTagNameNS()
Document.getElementsByClassName()
Document.images
Document.embeds
Document.plugins
Document.links
Document.forms
Document.scripts
Document.anchors
Document.applets
ParentNode.children
Element.getElementsByTagName()
Element.getElementsByTagNameNS()
Element.getElementsByClassName()
HTMLAllCollection.namedItem()
HTMLAllCollection.item()
Document.getElementsByTagName()
Document.getElementsByTagNameNS()
Document.getElementsByClassName()
Document.images
Document.embeds
Document.plugins
Document.links
Document.forms
Document.scripts
Document.anchors
Document.applets
HTMLMapElement.areas
HTMLTableElement.tBodies
HTMLTableElement.rows
HTMLTableSectionElement.rows
HTMLTableRowElement.cells
HTMLSelectElement.selectedOptions
HTMLDataListElement.options
HTMLFieldSetElement.elements
Referring IDL interfaces/dictionaries
Referring specifications
- HTML Standard refers to
HTMLCollection