ARIA attributes have invalid values
Automated check aria-valid-attr-value, run with axe-core
- WCAG
- 4.1.2 Name, Role, Value (Level A)
- Severity
- Serious: completable, but painful
- Typical effort
- Moderate, 1 to 4 hours
- Category
- Code quality
Who this affects
Screen reader users.
Why it matters
Typically an aria-labelledby or aria-describedby pointing at an element id that does not exist, so the intended label silently never reaches the user.
How to fix it
Verify every id referenced by an ARIA attribute exists in the DOM, including after client-side rendering.
Check your own website
The free scan tests 3 pages against WCAG 2.2 A and AA in about 30 seconds. No sign-up.
Related checks: Code quality
- ARIA attributes used on the wrong elements
- ARIA roles that do not suit the element
- Braille-only ARIA attributes have no spoken equivalent
- ARIA attributes used in ways the role does not allow
- Deprecated ARIA roles are used
- The page body is hidden from assistive technology
- ARIA labels placed on elements that cannot carry them
- ARIA roles are missing their required attributes