aria-hidden true read by JAWS

时光怂恿深爱的人放手 提交于 2019-12-02 01:18:17

问题


Using jQuery add role alert in #div1, read #div2 content even if it is hidden for JAWS.

<div id="div1">
     some content 
    <div id="div2" aria-hidden="true">
           some content 2 for div
    </div>
</div>  

回答1:


Currently, JAWS does not support aria-hidden state in both Internet Explorer and Firefox.

You can use role="presentation" though it is not recommended.

See also:

  • Official JAWS aria support list

  • Donald Evans's blog




回答2:


Support for the aria-hidden attribute was added to JAWS in their 13.0.718 update (February 2012). See the full change log below:

http://www.freedomscientific.com/downloads/jaws/JAWS13-previous-enhancements.asp.

JAWS now recognizes the aria-hidden attribute so that text that is supposed to be hidden is no longer announced.

It seems to work for me, but I've noticed that tabbable content wrapped in a "hidden" container can still be navigated to and read by JAWS.



来源:https://stackoverflow.com/questions/10820594/aria-hidden-true-read-by-jaws

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!