Product: axe Extension
Expectation: The HTML Menu Element allows for HTML List Item Element(s) as direct children.
Actual: Throws axe-core 4.3 exception
Motivation: This goes agains the web standards.
axe-core version: 4.3.5
axe-webdriver, extension or other integration version: 4.18.2 (Chromium/Brave)
Browser and Assistive Technology versions
Brave Browser (Chromium v95.0.4638.69) v1.31.91
The following HTML snippet it valid HTML. The menu element has an implicit role of list and allows for list item children. In the reference section, I have included a link to the demo that I have created. Setting the role attribute on the menu element to list solves the issue. But as stated in the MDN documentation. The menu element has an implicit role of list.
<menu>
<li><button onclick="copy()">Copy</button></li>
<li><button onclick="cut()">Cut</button></li>
<li><button onclick="paste()">Paste</button></li>
</menu>
References:
- MDN Menu Element: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu
- MDN List Item Element: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li
- Demo: https://cc-form.glitch.me/
- Axe Error: https://dequeuniversity.com/rules/axe/4.3/listitem?application=AxeChrome
Product: axe Extension
Expectation: The HTML Menu Element allows for HTML List Item Element(s) as direct children.
Actual: Throws axe-core 4.3 exception
Motivation: This goes agains the web standards.
axe-core version: 4.3.5
axe-webdriver, extension or other integration version: 4.18.2 (Chromium/Brave)
Browser and Assistive Technology versions
Brave Browser (Chromium v95.0.4638.69) v1.31.91
The following HTML snippet it valid HTML. The menu element has an implicit role of list and allows for list item children. In the reference section, I have included a link to the demo that I have created. Setting the role attribute on the menu element to list solves the issue. But as stated in the MDN documentation. The menu element has an implicit role of list.
References: