WCAG 2.1.2 · Level AOperable · WCAG 2.0ADA Title II / WCAG 2.1 AAEAA · EN 301 549 9.2.1.2Section 508
WCAG 2.1.2: No Keyboard Trap
Presses real Tab keys across the page and flags elements that lock keyboard focus in place.
Which free accessibility tools actually catch WCAG 2.1.2?
Empirically measured live against our public standalone test page (/wcagbench/suite).
WB-07Live keyboard focus trap on Tab key
Keydown handler intercepts Tab with preventDefault() and re-focuses the button indefinitely.
Selector: button#wb-keyboard-trap · User impact: Keyboard / Motor-Impaired
WCAGBenchCaught
LighthouseMissed
Siteimprove AlfaCaught
IBM Equal AccessMissed
axe FreeMissed
Pa11yMissed
Run an automated check for WCAG 2.1.2 in CI or locally
Active WCAGBench detector rule(s): sim-keyboard-trap. Free for personal and non-commercial use.
npx @wcagbench/cli scan https://yoursite.comNeed a formal human + screen-reader verification or VPAT covering WCAG 2.1.2? Request a paid audit consultation.