squirrelscan
GitHub

ARIA Valid Attribute Values

Checks for valid values in ARIA attributes

Checks for valid values in ARIA attributes

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

Solution

Ensure ARIA attribute values match the expected type. Boolean attributes should be ‘true’ or ‘false’. Enumerated attributes like aria-current have specific allowed values. Numeric attributes like aria-level must be numbers. Check the WAI-ARIA specification for valid values.

Enable / Disable

Disable this rule

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

Disable all Accessibility rules

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

Enable only this rule

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

Type to search…

↑↓ navigate↵ openesc close