Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/types/index.ts>dom.HTMLAllCollection

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.HTMLAllCollection
import { type dom } from "https://deno.land/x/evt@v2.4.16/lib/types/index.ts";
const { HTMLAllCollection } = dom;

Index Signatures

[index: number]: Element

Properties

readonly
length: number

Returns the number of elements in the collection.

Methods

item(nameOrIndex?: string): HTMLCollection | Element | null

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

namedItem(name: string): HTMLCollection | Element | null

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.