Skip to main content

Function: querySelectorByIdFlexible()

function querySelectorByIdFlexible(
doc: Document | null | undefined,
selector: string,
runtime?: ElementIdUtilsRuntime
): HTMLElement | null;

Defined in: utils/ui/dom/elementIdUtils.ts:67

Query selector helper that supports alternate ID spellings when the selector is a simple ID.

Parameters​

doc​

| Document | null | undefined

selector​

string

runtime?​

ElementIdUtilsRuntime = ...

Returns​

| HTMLElement | null