SIA-R20aria-*
attributes have a valid name
Accessibility requirements
This rule tests conformance of the following 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
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://www.w3.org/WAI/standards-guidelines/act/rules/5f99a7/. Copyright © 2024 W3C® (MIT, ERCIM, Keio, Beihang).