ARIA attribute names must be valid

Every attribute that starts with aria- must be one defined in the ARIA specification. Misspelled or invented names are ignored by browsers, so the label, state or relationship you meant to add never exists.

Rule IDaria-valid-attr
ImpactCritical
Success criterion 4.1.2 Name, Role, Value · A
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Fixed automatically

Example

Before
<h2 id="newsletter-title">Get our weekly recipes</h2>
<form aria-labeledby="newsletter-title">
  <label for="email">Email</label>
  <input id="email" type="email">
</form>

The misspelled attribute is ignored, so the form has no name and is not a landmark.

After
<h2 id="newsletter-title">Get our weekly recipes</h2>
<form aria-labelledby="newsletter-title">
  <label for="email">Email</label>
  <input id="email" type="email">
</form>

A screen reader lists “Get our weekly recipes, form” among the page landmarks.

Why it matters

Browsers only map ARIA attributes they recognise into the accessibility tree. A name with a typo, such as aria-labeledby (one “l”), aria-role or aria-description-by, is silently ignored. No error appears in the console, and the page looks exactly the same, so the bug can stay in a component for years.

The people affected are those the attribute was meant for. Blind screen reader users lose labels and descriptions, so controls may have no name. Hidden states such as expanded or selected are never announced. Voice control users cannot target controls whose name was meant to come from the attribute. This fails WCAG 4.1.2, because the name, state or property is not available to assistive technology.

How to fix it

Correct the spelling. The most common mistakes:

Wrong Right
aria-labeledby aria-labelledby
aria-describeby aria-describedby
aria-role role
aria-hide aria-hidden
aria-select aria-selected
aria-requried aria-required

Replace invented attributes. There is no aria-tooltip, aria-placeholder-text or aria-icon. Find the real attribute that does the job, or use native HTML.

Custom data for your scripts. Use data-* attributes, which are made for this purpose and never clash with ARIA:

<button data-panel="filters" aria-expanded="false">Filters</button>

Prevent it. Most code editors and linters can flag unknown ARIA attributes. Turn that rule on in your HTML or JSX linting, and in your component library's tests. In frameworks, check props that are passed through to the DOM: a typo in a prop name ends up as a broken attribute in every place the component is used.

Checklist

  1. Check the spelling of every aria-* attribute.
  2. Write aria-labelledby with a double “l”.
  3. Use role, not aria-role, to set a role.
  4. Use data-* for custom attributes your scripts need.
  5. Enable an ARIA lint rule in your editor or build.

How the check works

The check looks at every element that has at least one attribute starting with aria-. It passes when all of them are attributes defined in the ARIA specification and fails when any name is unknown, listing the invalid ones. It does not test whether the values are correct; another check covers that.

Resources

Updated October 27, 2026