aria-expanded="bool"
is not support attribute that role="menuitem"
.
Please refer to W3C HTML Document. (https://www.w3.org/TR/html/)
If use that, get markup error on Nu Html Checker. But when I create some menu widget I must use it. And W3C use the same way in the formula example:
- https://www.w3.org/TR/2017/WD-wai-aria-practices-1.1-20170628/examples/menubar/menubar-1/menubar-1.html
- https://www.w3.org/WAI/tutorials/menus/application-menus-code/
What is right and what is wrong?