SIA-R19aria-* states and properties have a valid value

Accessibility requirements

This rule tests conformance of the following accessibility requirements:

Description

This rule checks that ARIA states and properties have a valid value.

Applicability

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.

Expectations

  1. The attribute has a value that matches the value type of the corresponding state or property.

Assumptions

This rule makes no assumptions.

Accessibility support

This rule has no known accessibility support concerns.

Examples

Passed

This 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>

Failed

This 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>

Inapplicable

This element does not have any WAI-ARIA states or properties and is therefore inapplicable:

<div>Some Content</div>

Acknowledgments

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