Elements must only use supported ARIA attributes

How to fix the aria-allowed-attr accessibility rule. ARIA.

What this rule checks

Ensure an element's role supports its ARIA attributes

Who is affected

An ARIA attribute is used on an element that doesn't support it, so assistive technology may ignore or misread it.

How to fix it

Remove the attribute, or change the element/role to one that supports it.

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