SIA-R40Regions have an accessible name

Accessibility requirements

This rule tests conformance of the following accessibility requirements:

Description

This rule checks that elements with a semantic role of region have an accessible name.

Applicability

This rule applies to every element with a semantic role of region where the element is included in the accessibility tree.

Expectations

  1. The element has an accessible name that is not empty.

Assumptions

This rule makes no assumptions.

Accessibility support

This rule has no known accessibility support concerns.

Examples

Passed

This <div> with the semantic role of region has an accessible name that is not empty and therefore passes the rule:

<div role="region" aria-label="Recommendations"></div>

Failed

This <div> with the semantic role of region does not have an accessible name and therefore fails the rule:

<div role="region"></div>

Inapplicable

This <div> does not have the semantic role of region and is therefore inapplicable:

<div role="navigation"></div>