ARIA state or property has valid value
Last updated:
Created by:
Success Criterion:
Last updated:
Created by:
Success Criterion:
This rule checks that each ARIA state or property has a valid value
This conformance rule relates to:
Any non-empty WAI-ARIA 1.1 state or property that is specified on an HTML or SVG element.
Each test target has a valid value according to its WAI-ARIA 1.1 value type.
For value types ID Reference
and ID Reference List
for WAI-ARIA required properties at least one of the elements with the given ids exists in the same document tree or shadow tree as the element that specifies the target attribute.
For value type URI
the value matches the generic URI syntax.
Note: Only for WAI-ARIA required properties with value types ID Reference
and ID Reference List
is there a requirement that the elements with the given ids actually exists. For non-required properties, this is not a requirement.
Note:
For value type URI
, this rule does not require that the destination URI exists.
This rule assumes that elements that are not included in the accessibility tree or are focusable can still impact users. Therefore the applicability of this rule is not limited to WAI-ARIA 1.1 states and properties on elements that are included in the accessibility tree or are focusable.
Note: For example, anything referenced through aria-labelledby
does not have to be included in the accessibility tree in order for it to become part of the accessible name.
There are no major accessibility support issues known for this rule.
aria-required
property with valid true/false value
aria-expanded
state with valid true/false/undefined value
aria-pressed
state with valid tristate value
aria-errormessage
property with valid ID reference value
aria-owns
property with valid ID reference list value
aria-rowindex
property with valid integer value
aria-valuemin
, aria-valuemax
and aria-valuenow
properties with valid number values
aria-placeholder
property with valid string value
aria-orientation
property with valid token value (property inappropriate for the role)
aria-dropeffect
property with valid token list value
aria-controls
, which is a required property for the role scrollbar
, has ID Reference list
that references at least one element existing in the same document tree.
aria-required
property with invalid true/false value
aria-expanded
state with invalid true/false/undefined value
aria-pressed
state with invalid tristate value
aria-errormessage
property with invalid ID reference value, since space is not allowed in a single ID
aria-rowindex
property with invalid integer value
aria-valuemin
, aria-valuemax
and aria-valuenow
property with invalid number values
aria-live
property with invalid token value
Element with invalid token list value
aria-expanded
state with invalid true/false/undefined value for custom element
aria-controls
, which is a required property for the role scrollbar
, references an element that does not exist in the same document tree.
Element does not have any ARIA states or properties
Element has ARIA role, but no ARIA states or properties
aria-checked
state with empty value
aria-labelledby
property with empty value
aria-hidden
state on an element that is not an HTML or SVG element
A string of characters (text) is considered “non-empty” if it contains 1 or more characters that are contained within any of the following unicode categories:
For more details on unicode categories, check out www.fileformat.info/info/unicode/category/
Elements that can become the target of keyboard input as described in https://www.w3.org/TR/html/editing.html#focusable and https://www.w3.org/TR/html/editing.html#can-be-focused.
Elements included in the accessibility tree of platform specific accessibility APIs. Elements in the accessibility tree are exposed to assistive technologies, allowing users to interact with the elements in a way that meet the requirements of the individual user.
The general rules for when elements are included in the accessibility tree are defined in the core accessibility API mappings. For native markup languages, such as HTML and SVG, additional rules for when elements are [included in the accessibility tree][] can be found in the HTML accessibility API mappings and the SVG accessibility API mappings.
Note: Users of assistive technologies might still be able to interact with elements that are not included in the accessibility tree. An example of this is a focusable element with an
aria-hidden
attribute with a value oftrue
. Such an element could still be interacted with using sequential keyboard navigation regardless of the assistive technologies used, even though the element would not be included in the accessibility tree.
The programatically determined name of a user interface element that is included in the accessibility tree.
The accessible name is calculated using the accessible name and description computation.
For native markup languages, such as HTML and SVG, additional information on how to calculate the accessible name can be found in HTML Accessibility API Mappings 1.0, Accessible Name and Description Computation and SVG Accessibility API Mappings, Name and Description.
DOM Tree
CSS Styling
Contributing is open to anyone. We welcome any new issues or pull requests for changes. Auto WCAG Rules has conference calls every 4 weeks. If you are interested in becoming an active contributor or reviewer, we ask that you join the Auto WCAG Rules community group through the W3C Website. This requires setting up a W3C account, may require approval by the organization you work for if they are a W3C member.
Learn more about contributing to Auto WCAG Rules Join the Auto WCAG Rules community group now!