ElementUnpackIDs
Index
Interfaces
Interfaces
Options
optionalfilter
An Array.filter callback for filtering out specific element types.
Defaults to just filtering out null entries.
Type declaration
Parameters
value: HTMLElement
index: number
array: HTMLElement[]
Returns value is T
optionalroot
The root node. Generally only relevant when working within a shadow root or some other DocumentFragment that is not document.
Namespace for unpacking ID lists into their corresponding elements.
Used retrieving elements referenced in attributes such as
aria-controlsandaria-owns, which consist of space-separated element IDs.