squirrelscan
GitHub

ARIA Valid Attributes

Checks for valid ARIA attribute names

Checks for valid ARIA attribute names

Rule ID a11y/aria-valid-attr
Category Accessibility
Scope Per-page
Severity error
Weight 8/10

Solution

Use only valid ARIA attribute names as defined in the WAI-ARIA specification. Common typos include ‘aria-labeledby’ (should be ‘aria-labelledby’), ‘aria-role’ (should be ‘role’), and ‘aria-description’ vs ‘aria-describedby’. Consult MDN or the WAI-ARIA spec for the complete list of valid attributes.

Enable / Disable

Disable this rule

[rules]
disable = ["a11y/aria-valid-attr"]

Disable all Accessibility rules

[rules]
disable = ["a11y/*"]

Enable only this rule

[rules]
enable = ["a11y/aria-valid-attr"]
disable = ["*"]

Type to search…

↑↓ navigate↵ openesc close