All rules

Sheath rule

a11y-no-unknown-aria-attributes

ARIA attribute names must be defined by WAI-ARIA 1.2.
Package
Core
Default severity
error by default
Auto-fix
Manual fix

#Why

Browsers ignore misspelled or unknown aria-* attributes. Supported names are the 48 attributes in the WAI-ARIA 1.2 Recommendation. Attributes introduced only by later drafts are reported because they are outside that vocabulary.

#Examples

#Bad

<button aria-labl="Save">Save</button>

#Good

<button aria-label="Save">Save</button>
<button :aria-expanded="isOpen">Details</button>

Dynamic values are accepted because the attribute name is still statically known. Opaque attribute bags are not inspected.

#References