ARIA role is not valid

  • WCAG 4.1.2 Name, Role, Value, level A
  • Serious
  • ARIA
  • Automated
  • Server pass

Why it matters

An unknown role is ignored, so the element loses the meaning you meant to give it.

How to fix it

Use a role from the WAI-ARIA list, or better, use the matching native HTML element.

<!-- Before -->
<div role="buton">Save</div>

<!-- After -->
<button type="button">Save</button>

Read the W3C guidance: Understanding 4.1.2 Name, Role, Value.

Related rules

Find this on your own site. A11yMate scans every page and lists where it happens. See pricing or browse all rules.