SIA-R20aria-* attributes have a valid name

Accessibility requirements

This rule is not required for conformance to any accessibility requirements.

Description

This rule checks that aria-* attributes have a valid name.

Applicability

This rule applies to every attribute whose name starts with aria-.

Expectations

  1. The name of the attribute corresponds to a WAI-ARIA state or property.

Assumptions

This rule makes no assumptions.

Accessibility support

This rule has no known accessibility support concerns.

Examples

Passed

All aria-* attributes specified on this element are valid:

<input
    role="spinbutton"
    aria-valuemax="100"
    aria-valuemin="0"
    aria-valuenow="25"
    type="number"
    value="25"
/>

Failed

The attribute aria-not-checked is not a WAI-ARIA state or property:

<li role="menuitemcheckbox" aria-not-checked="true">List Item</li>

Inapplicable

None of the attributes of this element have a name starting with aria-:

<div role="button" id="my-div" class="my class">Button!</div>

Acknowledgments

This document includes material copied from or derived from https://act-rules.github.io/rules/5f99a7/. Copyright © 2021 W3C® (MIT, ERCIM, Keio, Beihang).