【问题标题】:Jaws 16 not reading "alert" role in IE 11Jaws 16 未在 IE 11 中读取“警报”角色
【发布时间】:2015-02-03 10:31:17
【问题描述】:

我们正面临 Jaws 16 和 IE 11 的问题。我们在网页上有一些工具提示,我们已将角色指定为“警报”,因此当 JAWS 读取它时,它将首先宣布“警报”,然后读取文本。它适用于带有 IE 11 的 JAWS 15。 现在 Jaws 已发布版本 16,我们已升级到该版本,因为当工具提示出现在 IE 11 中时它不会宣布“警报”。这与 Fire Fox 完美配合。

JAWS 16 与 IE 有什么问题吗?

【问题讨论】:

    标签: internet-explorer screen-readers jaws-screen-reader


    【解决方案1】:

    JAWS 16 最近发布了 2015 年 1 月的更新,解决了与 IE 相关的一些问题,其中一个可能会解决您的问题:

    http://www2.freedomscientific.com/downloads/jaws/jaws-whats-new.asp

    如果您已经获得了 2015 年 1 月的更新,则值得将问题的详细信息发送给他们的技术支持:

    http://www.freedomscientific.com/Forms/TechSupport

    【讨论】:

      【解决方案2】:

      Jaws 2015 年 5 月的最新更新似乎并没有解决在 IE11 中读取两次警报的问题。 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=polite 似乎就足够了。 从 2015 年 5 月起,上面的示例在 IE11 和 Firefox 37 以及 Jaws 16 上运行,在 Windows 7 上运行。(Chrome 没有发布公告,但这不是我的目标)

      【讨论】:

      • 您能否复制链接中的想法以避免将来出现陈旧的链接?
      • @mjuarez:请您从答案中删除 -1,它不再适用。
      • 这里好像有两个问题。一,它不读取警报,二,它读取它们两次。我很困惑。
      猜你喜欢
      • 2018-07-31
      • 1970-01-01
      • 1970-01-01
      • 2011-09-22
      • 2014-10-16
      • 2017-07-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多