JAWS 的 aria-hidden true 读取 [英] aria-hidden true read by JAWS

查看:56
本文介绍了JAWS 的 aria-hidden true 读取的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 jQuery 在 #div1 中添加角色警报,读取 #div2 内容,即使它对 JAWS 是隐藏的.

一些内容<div id="div2" aria-hidden="true">div 的一些内容 2

解决方案

在 JAWS 13.0.718 更新(2012 年 2 月)中添加了对 aria-hidden 属性的支持.请参阅下面的完整更改日志:

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

<块引用>

JAWS 现在可以识别 aria-hidden 属性,以便文本应该隐藏的不再公布.

它似乎对我有用,但我注意到包装在隐藏"容器中的可选项卡内容仍然可以被 JAWS 导航和阅读.

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>  

解决方案

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.

这篇关于JAWS 的 aria-hidden true 读取的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆