a with href cannot have ancestor with role=menuitem Web Standard

Description

The element a with the attribute href should not appear as a descendant of an element with the attribute role=menuitem

Help

The name, role, and state of an interactive control are ignored when the control is nested inside another interactive control, meaning the control is announced incorrectly by screen readers.

Applicable standards

Change history

  • 2026.62 Oct 2026 Added.

This page describes a web site issue detected in HTML documents by SortSite Desktop and OnDemand Suite.

Rule ID: W3cHtml5AssertNested-role-menuitem-a-attr-href