SIA-R68Elements with a role have required children
Accessibility requirements
This rule tests conformance of the following accessibility requirements:
Description
This rule checks that an element with a semantic role has at least one of its required owned elements.
Applicability
This rule applies to every element in the HTML or SVG namespace that is included in the accessibility tree and has a semantic role with one or more required owned elements, except if:
- the element has a semantic role of
combobox
; or - the element has an inclusive ancestor in the accessibility tree with an
aria-busy
state with a value oftrue
.
Expectations
- The element has at least one child in the accessibility tree with a semantic role that is one of the required owned elements of the semantic role of the target element.
Assumptions
This rule makes no assumptions.
Accessibility support
This rule has the following accessibility support concerns:
-
User agents do not all have the same accessibility tree. Particularly the method of deriving which element owns which other elements varies between browsers. This can lead to different results for this rule, depending on which accessibility tree is used as input.
-
aria-owns
has limited support in some user agents. -
Assistive technologies are not consistent in how they handle situations where a required owned element has a missing or incorrect role. This can lead to situations where inaccurate owned elements behave as expected in one assistive technology, but not in another.
-
Some user agents treat the value of
aria-busy
as case-sensitive.
Examples
Acknowledgments
This document includes material copied from or derived from https://www.w3.org/WAI/standards-guidelines/act/rules/bc4a75/. Copyright © 2024 W3C® (MIT, ERCIM, Keio, Beihang).