internet-explorer - 在 IE11 中,如果警报文本包含 anchor 标记,JAWS 会读取警报文本近 3 次

标签 internet-explorer accessibility wai-aria jaws-screen-reader

我正在更新应用程序中的警报消息。在 IE11 中测试且更新的警报仅为文本时,JAWS 会读取两次。我们认为这是可以接受的,因为到目前为止还无法修复。我的纯文本错误消息是:

<span id="error" role="alert" aria-live="assertive">
    We have a very important message for you!
</span>

我的问题是,当更新的警报包含也带有 anchor 标记的文本时,警报会被读取近三遍。 “将近三次”是因为它被读取了两次,然后是第三次,它在 anchor 标记之后停止读取。我的 anchor 标记警报消息是:

<span id="error" role="alert" aria-live="assertive">
    We have a very important message for you!  <a href="#">Click here</a> for more information.
</span>

这是一个可以测试问题的jsfiddle:http://jsfiddle.net/W4Km8/5851/

我的 IE 版本是 11.0.9600.17801,JAWS 版本是 16.0.2339。

各位好心人可以看一下吗?

最佳答案

将 Role=application 添加到 span,并将 aria-scribedby='error' 属性添加到按钮。

请进行上述更改。它会起作用的。

关于internet-explorer - 在 IE11 中,如果警报文本包含 anchor 标记,JAWS 会读取警报文本近 3 次,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31880806/

相关文章:

c++ - 屏幕阅读器无法访问 wxWidgets 中的 wxGrid

google-chrome - Mac VoiceOver 是否会限制其在 Chrome/Firefox 上的功能?

android - 在 FrameLayout 中移动焦点

html - 替换整个表格内容时与 aria 相关

html - 2d x/y 轴平面输入的适当咏叹调角色和行为是什么?

javascript - jquery ajax 仅在 IE 中失败

internet-explorer - Windows 7 欧洲版开发意义

javascript - li click 事件由于覆盖而无法正常工作(仅限 ie9)

javascript - Bootstrap Modal 在 IE8 中加载页面时打开

c# - 如何实现自定义控件的可访问性?