How to fix: invalid aria roles
WCAG 2.2 success criterion 4.1.2 (level A)
Why it matters
A misspelled or made-up role is ignored, so the element loses its meaning.
How to fix
Use only valid WAI-ARIA roles, or a native HTML element instead.
<nav> <!-- instead of <div role="navbar"> -->
Test it yourself
- Inspect every role attribute and check the value against the list of valid ARIA roles: spelling counts.
Common mistakes
- Made-up roles like role="nav", role="popup" or role="text".
- Two roles in one attribute where the first is invalid, such as role="tabs tablist".
Check your own site
Find this and other problems on your website in 30 seconds, free.