ARIA attributes must conform to valid values

How to fix the aria-valid-attr-value accessibility rule. ARIA.

What this rule checks

Ensure all ARIA attributes have valid values

Who is affected

An ARIA attribute has an invalid value (e.g. aria-expanded="yes"), so it's ignored or misread.

How to fix it

Use an allowed value (aria-expanded takes "true" or "false"; id references must point at real ids).

WCAG success criteria

When this rule fails, the page fails:

Find it on your own page

Scan a web page and the report lists every element that fails this rule, with screenshots outlining where they are, the code, and a selector you can paste into your browser’s developer tools.

More detail