当在 Firefox 上使用 NVDA 时,当从容器聚焦时它无法读取第一个 child ,但它能够读取第二个 child 。
一般示例:
<div class="container" tabindex="0">
<div class="child" aria-label="Child 1" tabindex="0">Child 1</div>
<div class="child" aria-label="Child 2" tabindex="0">Child 2</div>
</div>
当 .container
获得焦点时,您点击 tab 以聚焦“Child 1”,NVDA 不会读取“Child 1”,而是保持沉默。如果您再次点击 Tab,NVDA 会显示“Child 2”。
这可以在带有 ChromeVox 插件的 Chrome 上正确读取。
这是一个代码笔:http://codepen.io/anon/pen/WGyxom
当从 .container
聚焦时,我是否缺少一些允许 NVDA 读取“Child 1”的配置?
最佳答案
如果我没理解错的话,我认为您描述的可能是 NVDA 中的错误。以下是 Github 上描述此行为的两个错误报告的链接。根据评论链的回应,这听起来像是“有意”的:
This would be causing NVDa to read the entire page when it loads and therefore probably leaving focus on the final focusable node. Note that this is not really an issue for most users as they are well aware that focus will move because of the sayAll.
https://github.com/nvaccess/nvda/issues/5230 https://github.com/nvaccess/nvda/issues/3575
关于html - NVDA 在 Firefox 上从父级聚焦时不会读取第一个 HTML 子级,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40003613/