For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface DOMStringList

The DOMStringList interface is a legacy type returned by some APIs and represents a non-modifiable list of strings (DOMString).

MDN Reference

interface DOMStringList {
    length: number;
    "[iterator]"(): ArrayIterator<string>;
    contains(string: string): boolean;
    item(index: number): string | null;
    [index: number]: string;
}

Indexable

  • [index: number]: string
Index
length: number

The read-only length property indicates the number of strings in the DOMStringList.

MDN Reference

  • The contains() method returns a boolean indicating whether the given string is in the list.

    MDN Reference

    Parameters

    • string: string

    Returns boolean

  • The item() method returns a string from a DOMStringList by index.

    MDN Reference

    Parameters

    • index: number

    Returns string | null

Was this helpful?