Skip to main content

wai-aria-permitted-roles

Warns when a role is not permitted on the element according to ARIA in HTML.

This rule is part of the wai-aria rule family, split for granular severity control.

❌ Examples of incorrect code for this rule

<select role="textbox"></select>

✅ Examples of correct code for this rule

<a href="path/to" role="button">text</a>

Interface

{
"wai-aria-permitted-roles": boolean
}

Default Severity

error