Passed Passed Example 1 Open in a new tab This element with the menuitem role has an accessible name because of its text content.
Passed Example 2 Open in a new tab This element with the menuitem role has an accessible name because of its aria-label attribute.
Passed Example 3 Open in a new tab This element with the menuitem role has an accessible name because its aria-labelledby attribute references an element with text content.
Passed Example 4 Open in a new tab This element with the menuitem role has an accessible name because of its title attribute.
Failed Failed Example 1 Open in a new tab This element with the menuitem role has no accessible name because it has no content or attribute that can provide it.
Failed Example 2 Open in a new tab This element with the menuitem role has no accessible name because it has no content or attribute that can provide it. Inapplicable Inapplicable Example 1 Open in a new tab The li element has a listitem semantic role, even as a child of a menu element.
  • New file
  • Inapplicable Example 2 Open in a new tab This element with the menuitem role does not need an accessible name because it is not included in the accessibility tree.
    Shadow DOM Menu Items - Should Pass
    Shadow DOM Menu Items - Should Fail