Closed Karkhutvy closed 4 years ago
Have you tried modifying the markup in the suggested way - will that get rid of errors? And does it cause any problems with actual screen readers?
I tried to modify the markup, and the problem was gone if change the role back to "treeitem". But in this case, we will have problems with the incorrect numbers and ordinal numbers of elements in the tree https://github.com/vakata/jstree/issues/2424. Another way to fix this is to remove aria-attributes from li elements and leave them only for a elements. I described this solution in comment section of https://github.com/vakata/jstree/issues/2424.
Hi, I'm using AXE detection tool(https://www.deque.com/axe/) to detect accesibility issues. After updating to jsTree 3.3.10 I'm receiving warnings about forbidded attributes for tree elements:
It seems we have this issue because of
<li>
element that has role "presentation" but contains aria-selected and aria-level attributes. These attrbutes are not allowed for role "presentation". Maybe, role "treeitem" is expected for<li>
elements instead of "presentation" or aria-selected and aria-level should be removed from<li>
elements( because these attributes are already presented in inner<a>
elements for jsTree 3.3.10).