The menuitemcheckbox role
Semantics
A menuitem with a checkable state whose possible values are true, false, or mixed.
Abstract Role
WidgetRepresents a focusable, interactive element.
Content Category
Only Used with Specific Parent Roles
This role must be a direct descendant of one of the following roles:
- menu
- menubar
- group
Allowed Descendants
Phrasing Children Allowed
No interactive content descendants, and no descendants with a tabindex attribute specified.
Note
Children Become Presentational
Browsers automatically apply the presentation
role to all descendant elements, so their semantics are not conveyed to assistive technologies.
Usage
Elements that can designate the role in HTML:
a[href][role=menuitemcheckbox]
button[role=menuitemcheckbox]
img[role=menuitemcheckbox]
input[type=checkbox][role=menuitemcheckbox]
div[role=menuitemcheckbox]
custom-element[role=menuitemcheckbox]