aria-* states and properties have a valid value
This rule tests conformance of the following accessibility requirements:
This rule applies to every attribute with a value that is not empty (
""), specified on an element included in the accessibility tree, where the name of the attribute corresponds to a WAI-ARIA state or property.
Additionally, if the attribute is required on the role of its owner, and the value type is ID reference or ID reference list, then the document tree or shadow tree of the owner of the target attribute contains at least one element whose ID matches one of the tokens in the value of the attribute.
This rule makes no assumptions.
This rule has no known accessibility support concerns.
aria-required property has a valid value according to its value type of true/false and therefore passes the rule:
<div role="textbox" aria-required="true" aria-label="A required textbox"></div>
aria-required property does not have a valid value according to its value type of true/false and therefore fails the rule:
<div role="textbox" aria-required="undefined" aria-label="A required textbox" ></div>
aria-controls property, which is a required property for the role
scrollbar, references an element that does not exist in the same document tree.
<div role="scrollbar" aria-controls="content" aria-orientation="vertical" aria-valuemax="100" aria-valuemin="0" aria-valuenow="25" ></div>
This element does not have any WAI-ARIA states or properties and is therefore inapplicable:
aria-controls is required on the role of
combobox in ARIA 1.2, it is not anymore in ARIA 1.3 (unless the combobox is expanded), and the WAI-ARIA authoring practice for combobox only requires it on open comboboxes. Therefore, Alfa does not check the validity of ID ref list for
aria-controls on a
This document includes material copied from or derived from https://www.w3.org/WAI/standards-guidelines/act/rules/6a7281/proposed/. Copyright © 2023 W3C® (MIT, ERCIM, Keio, Beihang).