SIA-R94menuitem has non-empty accessible name

Accessibility requirements

This rule tests conformance of the following accessibility requirements:

Description

This rule checks that each element with a menuitem role has a non-empty accessible name.

Applicability

This rule applies to every element in the HTML namespace with a semantic role of menuitem that is included in the accessibility tree.

Expectations

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

Assumptions

This rule makes the following assumption:

Accessibility support

In some assistive technologies, the menuitem role will only be announced in browsing mode. When they receive focus this role is not announced. Additionally, the title attribute is not in all circumstance a reliable way to provide an accessible name. Use aria-label instead.

Implementation of Presentational Roles Conflict Resolution varies from one browser or assistive technology to another. Depending on this, some elements can have a semantic role of button and fail this rule with some technology but users of other technologies would not experience any accessibility issue.

Acknowledgments

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