Skip to main content

wai-aria-non-existent-role

Warns when a role attribute value does not exist in the WAI-ARIA specification.

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

❌ Examples of incorrect code for this rule

<div role="hoge"></div>

✅ Examples of correct code for this rule

<div role="button"></div>

Interface

{
"wai-aria-non-existent-role": boolean
}

Default Severity

error