ARIA attributes must have valid values

aria/aria-valid-attr-value · WCAG 4.1.2 · Level A

ARIA attributes must have valid values.

Each ARIA attribute accepts specific value types. Boolean attributes (aria-hidden, aria-disabled) accept only 'true' or 'false'. Tristate attributes (aria-checked, aria-pressed) also accept 'mixed'. Token attributes (aria-live, aria-autocomplete) accept predefined values. ID reference attributes (aria-labelledby, aria-describedby) must reference existing element IDs.

Scan a page or repo for issues like this · All rules

Introduced in @accesslint/core v0.8.0