简体   繁体   English

JAWS屏幕阅读器在FireFox中重复树项

[英]JAWS Screen Reader Repeats Tree Items in FireFox

I have run into an issue with the JAWS screen reader & Firefox. JAWS屏幕阅读器和Firefox出现问题。

I have a tree like the one below. 我有一棵下面的树。 Whenever any of the <a> elements gain focus, either by tabbing from the window or from the <button> , JAWS narrates the element three times . 只要<a>元素中的任何一个获得焦点(通过从窗口或<button>进行制表),JAWS都会对元素进行三次旁白。 As far as i can tell, Firefox is the only browser that does this. 据我所知,Firefox是唯一执行此操作的浏览器。

Is there something wrong with my markup here? 我的标记这里有问题吗?

<nav role="tree">
  <ol role="group">
    <li role="presentation">
      <a href="javascript:void(0)" role="treeitem">Parent Link 1</a>
      <ol role="group">
        <li role="presentation">
          <a href="javascript:void(0)" role="treeitem">Child Link 1</a>
        <li role="presentation">
          <a href="javascript:void(0)" role="treeitem">Child Link 2</a>
      </ol>
    <li role="presentation">
      <a href="javascript:void(0)" role="treeitem">Parent Link 2</a>
      <ol role="group">
        <li role="presentation">
          <a href="javascript:void(0)" role="treeitem">Child Link 3</a>
        <li role="presentation">
          <a href="javascript:void(0)" role="treeitem">Child Link 4</a>
      </ol>
  </ol>
</nav>

<button>Something else to focus on</button>

Many thanks. 非常感谢。

You should at the very least be using aria-owns to show the relationship between the parent and the child. 您至少应该使用aria-owns来显示父母与孩子之间的关系。 Take a look at this example http://oaa-accessibility.org/example/42/ 看一下这个例子http://oaa-accessibility.org/example/42/

Also, it would be better to actually just use the hierarchical list item structure that you already have. 另外,最好只使用已经拥有的分层列表项结构。 See this example: http://oaa-accessibility.org/example/41/ 参见以下示例: http : //oaa-accessibility.org/example/41/

If you have done that and still have problems, try it with NVDA instead of JAWS. 如果您这样做仍然有问题,请尝试使用NVDA而不是JAWS进行尝试。 NVDA is more standards compliant than JAWS. NVDA比JAWS更符合标准。

Once again, i have found the answer after asking the question. 再一次,我在问了问题之后找到了答案。 :( :(

Evidently, if i move role="tree" from the outer <nav> to the first <ol> , Firefox narrates as expected. 显然,如果我将role="tree"从外部<nav>移至第一个<ol> ,则Firefox将按预期进行旁白。 The markup now looks like this: 标记现在看起来像这样:

<nav>
  <ol role="tree">
    <li role="presentation">
      <a href="javascript:void(0)" role="treeitem">Parent Link 1</a>
      <ol role="group">
        <li role="presentation">
          <a href="javascript:void(0)" role="treeitem">Child Link 1</a>
        <li role="presentation">
          <a href="javascript:void(0)" role="treeitem">Child Link 2</a>
      </ol>
    <li role="presentation">
      <a href="javascript:void(0)" role="treeitem">Parent Link 2</a>
      <ol role="group">
        <li role="presentation">
          <a href="javascript:void(0)" role="treeitem">Child Link 3</a>
        <li role="presentation">
          <a href="javascript:void(0)" role="treeitem">Child Link 4</a>
      </ol>
  </ol>
</nav>

<button>Something else to focus on</button>

This smells like a bug in Firefox to me. 对我来说,这闻起来像Firefox中的错误。 I have opened a bug & will follow an developments. 我已经打开了一个错误 ,并且将关注事态发展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 JAWS屏幕阅读器忽略SPAN标记 - SPAN tag ignored by JAWS screen Reader JAWS屏幕阅读器将未选中的单选按钮处理为“部分选中” - JAWS screen reader handles unchecked radio button as 'partially checked' 屏幕阅读器中的表格阅读顺序-JAWS,Window Eyes - Table reading order in Screen Reader - JAWS, Window Eyes 如何使JAWS屏幕阅读器阅读标题文件,逐字逐句而不是句子阅读? - how to make JAWS screen reader to read the title document to read separately letter by letter instead of sentence? 在选项卡到页面上的第一个元素后,JAWS屏幕阅读器继续读取其他元素 - JAWS screen reader continues reading other elements after tabbing to first element on page 屏幕阅读器无法读取 Firefox 中的 Aria-Live - Aria-Live in Firefox not read by screen reader 屏幕阅读器多次读取列表项 - Screen reader reads list items multiple times 清单项目的图片在html中重复 - Images of list items repeats in html Firefox如何解决材料设计输入字段占位符屏幕阅读器问题? - How to solve material design input field placeholder screen reader issue with Firefox? 屏幕阅读器不会将嵌套菜单列表和子菜单项作为菜单和菜单项读取 - Nested Menu list and submenu items are not read as menu and menu item by screen reader
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM