Every week, an engineering team drops a single <script> tag from a third-party "AI accessibility overlay" vendor into their <head> , sees a floating wheelchair icon in the bottom corner, and checks off WCAG 2.1 AA compliance.
Then an automated axe-core audit—or a keyboard/screen-reader user trying to finish checkout—hits the site and fails immediately.
Overlays don't fail because accessibility is hard to automate; they fail because of how browser accessibility trees actually work. Below is a technical breakdown of why client-side overlay patches fall short of WCAG 2.1 AA, followed by the 6 real DOM & CSS fixes that resolve the overwhelming majority of production failures cleanly at the source.
Why JavaScript Overlays Fail Deterministic WCAG 2.1 AA Audits
When a browser parses HTML, it builds two parallel structures: the DOM tree and the Accessibility Object Model (AOM) / Accessibility Tree , which assistive technologies (NVDA, JAWS, VoiceOver, TalkBack) consume directly.
Client-side overlays try to…