钳口16不读取“警报"信号.在IE 11中的作用 [英] Jaws 16 not reading "alert" role in IE 11

查看:72
本文介绍了钳口16不读取“警报"信号.在IE 11中的作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正面临Jaws 16和IE 11的问题.我们在网页上提供了一些工具提示,其中我们已将角色分配为警报",因此当JAWS读取它时,它将首先宣布警报",然后读取文本.在带有IE 11的JAWS 15上运行正常. 现在Jaws已发布版本16,并且由于在IE 11中出现工具提示时它不会宣布警报",因此我们已升级到该版本.这与Fire Fox完美配合.

We are facing an issue with Jaws 16 and IE 11. We have some tooltips on the web page where we have assigned role as "alert" so that when JAWS reads it it will will first announce 'alert' and then reads the text. It was working fine for JAWS 15 with IE 11. Now Jaws has released version 16 and we have upgraded to that version due to that it is not announcing the 'alert' when tooltip comes in IE 11. This working perfectly fine with Fire Fox.

使用IE的JAWS 16是否有问题?

Is there any issue with JAWS 16 with IE?

推荐答案

自2015年5月起,Jaws的最新更新似乎无法解决IE11中两次读取警报的问题. 有一个技巧可以解决IE11的问题:

The latest update of Jaws from May 2015 doesn't seem to solve the problem that alerts are read twice in IE11. There is a trick to solve this issue with IE11:

<div id="AriaAlertReceiver" aria-live="polite"></div>

EmsUtils.showAriaAlert = function(msg) {
    var alertDiv = $("#AriaAlertReceiver");
    if (alertDiv[0]){
        // Set the alert text in a div - it already has aria-live=polite
        // This will be actually ignored by IE for now
        alertDiv.html(msg);
        setTimeout(function () {
            // Change the message again after a short time - now IE does detect it
            if (zk.ie >= 11) {
                alertDiv.html(msg + "!");
            }
            setTimeout(function () {
                // Remove the alert after a short time, so it can be used again later
                alertDiv.html("");
            }, 1000);
        }, 100);
    }
}

技巧设置实时区域文字的两倍.第一次被IE11忽略,但是第二次检测到更改. aria-live =礼貌似乎就足够了. 上面的示例从2015年5月开始在Windows 7上的带有Jaws 16的IE11和Firefox 37中运行(Chrome并未发布声明,但这不在我的目标范围内)

The trick is to set twice the text of the live region. The first time is ignored by IE11, but the second time the change is detected. aria-live=polite seems to be enough. The example above works in IE11 and Firefox 37 with Jaws 16 from May 2015, on Windows 7. (Chrome doesn't make the announcement, but that's not in my target)

这篇关于钳口16不读取“警报"信号.在IE 11中的作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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