Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

HTMLAllCollection

interface HTMLAllCollection {
[index: number]: Element;
readonly length: number;
[[Symbol.iterator]](): IterableIterator<Element>;
item(nameOrIndex?: string): HTMLCollection | Element | null;
namedItem(name: string): HTMLCollection | Element | null;
}
var HTMLAllCollection: {
prototype: HTMLAllCollection;
}
;

§Index Signatures

§
[index: number]: Element

§Properties

§
readonly length: number
[src]

Returns the number of elements in the collection.

§Methods

§
[[Symbol.iterator]](): IterableIterator<Element>
[src]
§
item(nameOrIndex?: string): HTMLCollection | Element | null
[src]

Returns the item with index index from the collection (determined by tree order).

§
namedItem(name: string): HTMLCollection | Element | null
[src]

Returns the item with ID or name name from the collection.

If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.

Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.