R
fn

getTabbableCandidates

v0.0.5tested

Collects all tabbable candidates via TreeWalker (faster than querySelectorAll). This is an approximate check — does not account for computed styles. Visibility is checked separately in `findFirstVisible`.

Signature

ts
export function getTabbableCandidates(container: HTMLElement): HTMLElement[]{ ... }

Parameters

ParameterTypeDescription
containerHTMLElement

Returns

HTMLElement[]