Ensure elements that are marked to be removed from the accessibility tree are actually removed.
There are certain cases where the semantic role of an element with role=”none” or role=”presentation” does not resolve to none or presentation (respectively). When this occurs, the element is not removed from the accessibility tree, which makes it inaccessible to screen readers.
Developers should check all elements with role=“none” or role=“presentation” to ensure they do not have a global ARIA attribute and are not focusable.
<li role="none" id="global-attr" aria-hidden="true"></li><button id="natively-focusable" role="none"></button><img alt="" id="tabindex" tabindex="0"/>
Copy
For more examples, visit W3C’s GitHub’s ATC Rules library.