Product
axe-core
Product Version
4.5.2
Latest Version
Issue Description
Expectation
Nested menus should be allowed. An element role="menu" is a valid descendant of another element with the same role.
Actual
I got a false positive
How to Reproduce
Make a test with an example from here: https://www.w3.org/WAI/ARIA/apg/example-index/menubar/menubar-navigation
Here is the simplified version of their example:
<ul role="menu" aria-label="About" id="target">
<li role="none">
<a role="menuitem" href="#overview">
Overview
</a>
</li>
<li role="none">
<a role="menuitem"
aria-haspopup="true"
aria-expanded="false"
href="#facts">
Facts
</a>
<!-- remove this ul and test would pass -->
<ul role="menu" aria-label="Facts">
<li role="none">
<a role="menuitem" href="#history">
History
</a>
</li>
</ul>
</li>
</ul>
Product
axe-core
Product Version
4.5.2
Latest Version
Issue Description
Expectation
Nested menus should be allowed. An element
role="menu"is a valid descendant of another element with the same role.Actual
I got a false positive
How to Reproduce
Make a test with an example from here: https://www.w3.org/WAI/ARIA/apg/example-index/menubar/menubar-navigation
Here is the simplified version of their example: