Common ARIA Mistakes: 7 Errors That Break Screen Readers
Common ARIA mistakes that break screen readers: 7 errors with code fixes, a checker script, and how often ARIA goes wrong on 156 randomly chosen homepages.
Kazi Khalid Hasan Tamim · BugViso Team
14 min read
The most common ARIA mistakes are roles that promise keyboard behaviour the element doesn't have, aria-hidden on content that can still take focus, misspelled or invalid attributes, missing child roles, menu roles on site navigation, labels that override visible text and references to IDs that don't exist. Each one makes the page worse for screen reader users than no ARIA at all. In our test of 156 random homepages, 87 % used ARIA, and 22 % of those had at least one ARIA error axe-core could prove.
By the end you'll know why ARIA fails the way it does, which seven mistakes to look for, the code that fixes each one, and a script that finds them on any page in a few seconds.
Data used: 156 homepages that loaded cleanly, out of 268 domains drawn at random from the Tranco top-sites list (list 947V2, ranks 1,001 to 50,000), tested on 4 December 2026 with Playwright 1.52, Chromium 136 and axe-core 4.10.2 (WCAG 2.0 to 2.2 A and AA rules) at 1280 × 800 px. We excluded 112 domains that didn't resolve, failed TLS, timed out, returned an HTTP error or showed a bot challenge. Homepages only; sites aren't named. ARIA use was counted in the DOM; an unreachable widget is a visible element with an interactive role (button, link, tab, menuitem and similar) that isn't natively focusable and has no
tabindex. Population-wide figures come from the WebAIM Million 2026 report (data from February 2026).
Manual accessibility testing series: How to run a full accessibility audit · Keyboard testing · Screen reader testing · ARIA mistakes (this post) · Accessible forms · Reflow and zoom testing
Why Bad ARIA Is Worse Than No ARIA
ARIA changes what assistive technology announces, never what the element does. Adding role="button" to a <div> makes a screen reader say "button", but the <div> still can't be reached with Tab or pressed with Enter. The user has been told something false.
That is why the W3C's ARIA Authoring Practices Guide opens its Read Me First page with a heading that says "No ARIA is better than Bad ARIA". It describes ARIA roles, states and properties as something like a cascading style sheet for assistive technology: they describe the interface, and a wrong description misleads.
The W3C's Using ARIA note sums up the defensive approach in four rules. It is now a discontinued draft, kept for reference, but the rules still hold:
- If a native HTML element or attribute already has the semantics and behaviour you need, use it instead of ARIA.
- Don't change native semantics unless you really have to.
- All interactive ARIA controls must be usable with the keyboard.
- Don't put
role="presentation"oraria-hidden="true"on a focusable element.
The population data points the same way. The WebAIM Million 2026 found ARIA on 82.7 % of the top million home pages, averaging over 133 ARIA attributes each, and pages with ARIA had more detected errors on average (59.1) than pages without (42). WebAIM is careful to note that this doesn't prove ARIA caused the errors: pages with ARIA also tend to be more complex.
How Often ARIA Goes Wrong on 156 Homepages
We counted ARIA on every homepage and ran axe-core's ARIA rules. Most homepages use ARIA, and a fifth of those get at least one detail wrong that a machine can prove.
| ARIA problem | axe-core rule | Homepages | Share |
|---|---|---|---|
Uses role or aria-* at all | (DOM count) | 136 of 156 | 87.2 % |
| At least one ARIA rule violation, among pages using ARIA | all aria-* rules | 30 of 136 | 22.1 % |
| Interactive role that Tab can't reach | (DOM count) | 15 of 156 | 9.6 % |
Required child roles missing (a tablist with no tab) | aria-required-children | 9 of 156 | 5.8 % |
aria-hidden content that can still take focus | aria-hidden-focus | 8 of 156 | 5.1 % |
| ARIA input with no name | aria-input-field-name | 5 of 156 | 3.2 % |
| Attribute not allowed on the role | aria-allowed-attr | 4 of 156 | 2.6 % |
| ARIA button, link or menu item with no name | aria-command-name | 4 of 156 | 2.6 % |
| Required parent role missing | aria-required-parent | 3 of 156 | 1.9 % |
| Invalid attribute value | aria-valid-attr-value | 3 of 156 | 1.9 % |
Attribute prohibited on the role (such as aria-label on a plain <div>) | aria-prohibited-attr | 3 of 156 | 1.9 % |
The DOM count is the telling line. 15 homepages (9.6 %) had visible elements announced as buttons, tabs or menu items that Tab never reached, which breaks the third rule above. axe-core's standard WCAG rules don't test for it, so it never appears in a scan report.
Our sample echoes WebAIM's correlation: the median page with ARIA had 11 axe-core violation nodes, the median page without had 4. Only 20 homepages used no ARIA at all, too few to compare fairly. The most-used roles were button (64 homepages), presentation (44) and dialog (41), and 17 homepages used role="menu", which belongs to application menus, not site navigation (mistake 5 below).
The 7 Common ARIA Mistakes and How to Fix Them
1. A role that promises keyboard support the element doesn't have
The single most damaging pattern. role="button", role="tab" or role="link" on a <div> or <span> with a click handler: a screen reader announces a control that Tab can't reach and Enter can't press.
<!-- ❌ Broken: announced as a button, unreachable by keyboard -->
<div role="button" onclick="save()">Save</div><!-- ✅ Fixed: the native element brings focus, Enter and Space for free -->
<button type="button" onclick="save()">Save</button>If a custom element is unavoidable, it needs tabindex="0" and a keydown handler for Enter and Space. Our keyboard accessibility testing guide shows how to find these with a 15-minute Tab walk.
2. aria-hidden="true" on something that can still be focused
aria-hidden removes content from the accessibility tree but not from the Tab order. Keyboard focus lands on an element the screen reader has been told doesn't exist, and the user hears nothing.
<!-- ❌ Broken: the closed modal is hidden from screen readers, its links are still tabbable -->
<div class="modal" aria-hidden="true">
<a href="/terms">Terms</a> <button>Accept</button>
</div><!-- ✅ Fixed: inert hides it from both the accessibility tree and the keyboard -->
<div class="modal" inert>
<a href="/terms">Terms</a> <button>Accept</button>
</div>aria-hidden="true" is still right for purely decorative content: an icon next to a text label, a duplicated logo, a background SVG. Just never on anything focusable, or on a parent of something focusable.
3. Invalid attribute names and values
ARIA attributes are a closed list with typed values, and browsers silently ignore what they don't recognise. A typo means the feature simply isn't there.
<!-- ❌ Broken: none of these do anything -->
<div aria-role="alert">Payment failed</div> <!-- not an attribute: role= -->
<button aria-expanded="yes">Menu</button> <!-- must be true or false -->
<input aria-labeledby="email-label"> <!-- misspelled: labelledby --><!-- ✅ Fixed -->
<div role="alert">Payment failed</div>
<button aria-expanded="false" aria-controls="menu">Menu</button>
<input aria-labelledby="email-label">This is the category automated testing is best at: axe-core's aria-valid-attr and aria-valid-attr-value rules catch it every time.
4. A container role without its required children
Some roles only make sense with specific children. A tablist needs tabs, a list needs listitems, a menu needs menuitems. Without them, a screen reader announces an empty or broken structure.
<!-- ❌ Broken: tablist whose items are plain buttons -->
<div role="tablist">
<button>Monthly</button><button>Yearly</button>
</div><!-- ✅ Fixed: tabs announce "tab, 1 of 2, selected" -->
<div role="tablist" aria-label="Billing period">
<button role="tab" aria-selected="true" aria-controls="p-monthly" id="t-monthly">Monthly</button>
<button role="tab" aria-selected="false" aria-controls="p-yearly" id="t-yearly" tabindex="-1">Yearly</button>
</div>The tab pattern also needs arrow-key navigation between tabs. Follow the APG pattern completely, or use plain buttons and skip the roles.
5. role="menu" on the site navigation
menu and menubar are for application menus, like the File and Edit menus in a desktop app. They switch the screen reader into a mode where arrow keys move between items and the user expects app-style behaviour. A website's navigation is a list of links.
<!-- ❌ Broken: tells screen reader users to expect a desktop app menu -->
<ul role="menubar"><li role="menuitem"><a href="/pricing">Pricing</a></li>…</ul><!-- ✅ Fixed: a labelled navigation landmark with ordinary links -->
<nav aria-label="Primary">
<ul><li><a href="/pricing" aria-current="page">Pricing</a></li>…</ul>
</nav>The W3C's menu and menubar pattern documents the full keyboard model a real menu needs. Most site navigation doesn't need any of it.
6. aria-label that fights the visible text
aria-label replaces the element's text as its accessible name. When it says something different from what's on screen, voice-control users who say what they see ("click Get started") can't activate the button, and WCAG 2.5.3 Label in Name fails. On a plain <div> or <span> with no role, ARIA 1.2 prohibits aria-label altogether, and many screen readers ignore it.
<!-- ❌ Broken: visible "Get started", accessible name "Create a free account" -->
<a href="/signup" aria-label="Create a free account">Get started</a>
<!-- ❌ Broken: aria-label on a generic element is ignored -->
<div aria-label="Customer reviews">…</div><!-- ✅ Fixed: the name starts with the visible words; regions get a role -->
<a href="/signup">Get started<span class="visually-hidden"> with a free account</span></a>
<section aria-label="Customer reviews">…</section>7. References and states that point at nothing
aria-labelledby, aria-describedby and aria-controls take IDs. When the ID is renamed, duplicated or rendered later, the reference silently breaks. States break the same way: aria-expanded="false" set once in the template and never updated when the menu opens.
// ✅ Fixed: the state follows the UI, every time it changes
button.addEventListener('click', () => {
const open = button.getAttribute('aria-expanded') === 'true';
button.setAttribute('aria-expanded', String(!open));
menu.hidden = open;
});Broken references are machine-detectable. Stale states are not: only a person (or a test that clicks and re-reads the attribute) notices that the menu is open while the button still says collapsed.
Find ARIA Mistakes on Any Page With a Script
The script below checks six of the seven patterns from the live DOM: unreachable widget roles, focusable content under aria-hidden, dangling ID references, aria-expanded on elements that aren't controls, menu roles inside navigation, and aria-label on generic elements. Stale states still need a click-through.
#!/usr/bin/env python3
"""Find the ARIA mistakes that break real users, without an extension.
Usage: python aria_check.py https://example.com
Needs: pip install playwright && playwright install chromium
"""
import asyncio, sys
from playwright.async_api import async_playwright
CHECKS = r"""() => {
const q = s => [...document.querySelectorAll(s)];
const vis = e => { const r = e.getBoundingClientRect(); return r.width > 0 && r.height > 0; };
const focusable = 'a[href],button,input,select,textarea,summary,iframe,[tabindex]:not([tabindex="-1"])';
const native = e => e.matches('a[href],button,input,select,textarea,summary');
const widget = /^(button|link|checkbox|tab|menuitem|switch|radio|option|combobox|slider)$/;
const desc = e => e.outerHTML.slice(0, 90).replace(/\s+/g, ' ');
const out = {};
out['role widget Tab cannot reach'] = q('[role]').filter(e => widget.test(e.getAttribute('role').trim())
&& !native(e) && !e.hasAttribute('tabindex') && vis(e)).map(desc);
out['aria-hidden on focusable content'] = q('[aria-hidden="true"]').filter(e => e.matches(focusable)
|| e.querySelector(focusable)).map(desc);
out['aria-labelledby/describedby points at a missing id'] = q('[aria-labelledby],[aria-describedby]').filter(e =>
['aria-labelledby', 'aria-describedby'].some(a => (e.getAttribute(a) || '').split(/\s+/).filter(Boolean)
.some(id => !document.getElementById(id)))).map(desc);
out['aria-expanded on a non-control'] = q('[aria-expanded]').filter(e => !native(e) && !e.hasAttribute('role')).map(desc);
out['role="menu" used for site navigation'] = q('nav [role=menu], [role=menubar] a[href]').map(desc);
out['aria-label on an element with no role'] = q('div[aria-label]:not([role]),span[aria-label]:not([role])').map(desc);
return out;
}"""
async def main(url):
async with async_playwright() as pw:
page = await (await pw.chromium.launch()).new_page()
await page.goto(url, wait_until="domcontentloaded")
await page.wait_for_timeout(2000)
for check, hits in (await page.evaluate(CHECKS)).items():
print(f"{len(hits):>4} {check}")
for h in hits[:3]:
print(f" {h}")
asyncio.run(main(sys.argv[1]))On our own homepage every count came back 0, which is what a page built mostly from native elements looks like:
$ python aria_check.py https://bugviso.com
0 role widget Tab cannot reach
0 aria-hidden on focusable content
0 aria-labelledby/describedby points at a missing id
0 aria-expanded on a non-control
0 role="menu" used for site navigation
0 aria-label on an element with no roleTreat a non-zero count as a lead, not a verdict. An element hidden with aria-hidden may also be inert or display: none at the moment you test, and a role="button" element may receive focus through a roving tabindex set later by script.
How BugViso Flags ARIA Errors Across a Whole Site
BugViso's accessibility engine runs axe-core's ARIA rules on every crawled page: aria-valid-attr and aria-valid-attr-value (typos and bad values), aria-required-attr, aria-required-children and aria-required-parent (broken structures), aria-allowed-attr and aria-prohibited-attr (attributes a role doesn't support), aria-hidden-focus (mistake 2), aria-roles (made-up roles) and the naming rules for ARIA buttons, inputs, toggles and progress bars. Findings are grouped by rule, so a broken component in the site header appears once with every page it's on, instead of once per page.
What no scanner can do is judge whether an ARIA pattern behaves the way its role promises: arrow keys in a tablist, aria-expanded that changes when the menu opens, a live region that fires at the right time. Run the WCAG accessibility audit to clear the static errors, then test the interactive ones with a keyboard and a screen reader.
When ARIA Is the Right Tool
None of this means "never use ARIA". Native HTML has gaps, and these attributes fill them well:
| Need | Use | Why HTML alone falls short |
|---|---|---|
| Announce "Saved" or "3 results" | role="status" (a polite live region) | No native element announces a text change |
| Show a disclosure is open | aria-expanded on the toggle button | <button> has no open/closed state |
| Mark the current page in navigation | aria-current="page" | Styling alone isn't announced |
| Connect a hint or error to a field | aria-describedby | <label> gives the name, not the description |
| Name an icon-only button | aria-label | There's no visible text to use |
| Hide decorative icons | aria-hidden="true" | Otherwise some SVGs are announced as "image" |
The pattern is the same in every row: ARIA adds information HTML can't express, on top of an element that already behaves correctly.
Frequently Asked Questions
What is the first rule of ARIA?
The first rule of ARIA use, from the W3C's Using ARIA note, is: if a native HTML element or attribute already has the semantics and behaviour you need, use it instead of adding ARIA to something else. A <button> beats <div role="button"> because it brings focus, keyboard activation and the correct role with no extra code.
Is aria-label bad for accessibility?
No, but it's often misused. aria-label is the right way to name an icon-only button or a landmark. It goes wrong when it contradicts the visible text (breaking voice control and WCAG 2.5.3 Label in Name), when it's put on a generic <div> or <span> where ARIA 1.2 prohibits it, or when it stuffs extra words into every link.
When should I use aria-hidden="true"?
Use it on content that is purely decorative or duplicated: icons beside a text label, a repeated logo, background illustrations. Never put it on a focusable element or on a container with focusable children, because keyboard users can still reach that content while screen readers announce nothing. To hide an interactive region, use inert, hidden or display: none instead.
Can automated tools find all ARIA mistakes?
They find the static ones reliably: invalid attributes and values, missing required children, ARIA on elements that don't support it, aria-hidden on focusable content and broken references. In our sample, axe-core found at least one ARIA error on 22.1 % of the homepages that used ARIA. They can't tell whether a widget's keyboard behaviour matches its role or whether states update when the interface changes. That still needs a keyboard and a screen reader.
Does more ARIA make a website more accessible?
Not by itself. The WebAIM Million 2026 found that home pages with ARIA averaged 59.1 detected errors against 42 on pages without it, while noting that ARIA isn't necessarily the cause. Accessibility comes from correct semantics and behaviour; most of that is native HTML, with ARIA filling specific gaps.
Delete Before You Add
The fastest ARIA fix is usually removal: swap the div role="button" for a <button>, drop the menubar from the navigation, take aria-hidden off anything focusable. Then add ARIA only where HTML has no answer, and let an automated audit catch the typos before your users do.
Written by
Kazi Khalid Hasan Tamim · BugViso Team
Kazi writes BugViso’s guides on website audits, Core Web Vitals, technical SEO, accessibility and AI search. The data in them comes from audits BugViso runs in a real Chromium browser, including our 219-site study of website health.
Summarise with AI
Open this guide in your assistant.
Follow BugViso
New guides and audit data as we publish them.
AI visibility tracker
Is your brand in AI answers?
See how often AI assistants mention you, cite your site and rank you against your competitors.
- ChatGPT
- Gemini
- Perplexity
- Claude
- AI Overviews
See where your site stands
Run a free BugViso audit for SEO, speed, accessibility and AI search readiness — with fixes you can ship today.