ARIA role attributes must use valid role values

The role attribute must hold a role defined in the ARIA specification. Misspelled, made-up and abstract roles are ignored, so the element loses the meaning you meant to give it.

Rule IDaria-roles
ImpactCritical
Success criterion 4.1.2 Name, Role, Value · A
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Fixed automatically

Example

Before
<div role="naviagtion" aria-label="Main menu">
  <a href="/shop">Shop</a>
  <a href="/journal">Journal</a>
</div>

Screen readers find no navigation landmark, so users cannot jump to the main menu.

After
<div role="navigation" aria-label="Main menu">
  <a href="/shop">Shop</a>
  <a href="/journal">Journal</a>
</div>

A screen reader lists “Main menu, navigation” among the landmarks, one keystroke away.

Why it matters

Browsers translate roles into the accessibility tree that screen readers, braille displays and voice control read. They only know the roles in the ARIA specification. A typo such as naviagtion, a made-up value such as dropdown, or an abstract role such as widget or landmark is thrown away. The element then falls back to its native meaning, which for a <div> or <span> is nothing at all.

The result depends on what the role was meant to do. A missing landmark makes the page harder to scan. A missing button or dialog role can make a control impossible to understand or operate without sight. Since the page looks fine, this is easy to miss without automated testing. It fails WCAG 4.1.2, which requires the role of every component to be programmatically available.

How to fix it

Fix typos. Compare the value with the official role list. Common slips: navigaton, buton, presentational, heading1.

Replace invented roles. There is no dropdown, modal, card or icon role. Pick the real one that matches the behaviour, or use native HTML:

<!-- instead of role="modal" -->
<div role="dialog" aria-modal="true" aria-labelledby="cart-title">…</div>

Remove abstract roles. command, composite, input, landmark, range, section, sectionhead, select, structure, widget and window exist only to organise the specification. Use a concrete role such as button, region or slider.

Watch the case and spaces. Roles are lower case. Several values separated by spaces are treated as a fallback list, so the first valid one wins; separate them with spaces, not commas.

Remove empty or decorative roles. If you added a role only as a styling hook, use a class instead.

Checklist

  1. Check every role value against the ARIA role list.
  2. Replace invented roles like dropdown or modal with real ones.
  3. Never use abstract roles such as widget or landmark.
  4. Write roles in lower case, separated by spaces.

How the check works

The check looks at every element with a non-empty role attribute. It fails when none of the listed role tokens is a valid ARIA role, when the role is abstract, or when it is a role that browsers and assistive technology do not support. If the attribute holds several tokens and at least one is valid, the invalid-role part passes.

Resources

Updated October 27, 2026