Skip to main content

ElementUnpackIDs

Namespace for unpacking ID lists into their corresponding elements.

Used retrieving elements referenced in attributes such as aria-controls and aria-owns, which consist of space-separated element IDs.

Index

Interfaces

Interfaces

Options

Options<T>:

Further options for ElementUnpackIDs.


Type parameters

  • T: HTMLElement = HTMLElement

optionalfilter

filter?: (value: HTMLElement, index: number, array: HTMLElement[]) => value is T

An Array.filter callback for filtering out specific element types. Defaults to just filtering out null entries.


Type declaration

    • (value: HTMLElement, index: number, array: HTMLElement[]): value is T
    • Parameters

      • value: HTMLElement
      • index: number
      • array: HTMLElement[]

      Returns value is T

optionalroot

root?: Element

The root node. Generally only relevant when working within a shadow root or some other DocumentFragment that is not document.

Page Options