Windows讲述人和aria- describeby [英] Windows Narrator and aria-describedby

查看:161
本文介绍了Windows讲述人和aria- describeby的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在几个单选按钮上使用aria-描述,以便屏幕阅读器首先阅读单选标签,然后阅读说明文字以提供更多信息.

I'm using aria-described by on a few radio buttons so that screen readers will first read the radio label and then the description text to give more information.

由于页面的结构,我无法使用字段集.如果您有一个没有for属性的标签,那么许多源可访问性验证器将显示错误,因此我将div用作描述文字.

Due to the structure of the page I can't use a fieldset. Many source accessibility validators will show an error if you have a label without a for attribute so I am using a div for the description text.

<div id="desc">Choose a fruit</div>
...
<label><input type="radio" aria-describedby="desc" />Apple</label>
<label><input type="radio" aria-describedby="desc" />Orange</label>

但是,针对IE11的Windows 8.1讲述人不会读取描述文本.

However Windows 8.1 Narrator against IE11 will not read the description text.

如果我在div中添加role ="heading",这会合适吗? 如果我将div更改为标签,它也会(但验证失败).

If I add role="heading" to the div it will (Is this appropriate?). If I change the div to a label it will as well (but fail validation).

JavaScript WinRT应用程序准则似乎表明此简单结构是有效的(

The JavaScript WinRT app guidelines seem to indicate that this plain structure is valid (http://msdn.microsoft.com/en-au/library/windows/apps/hh700323.aspx). Does Narrator against IE follow different rules? What are they?

推荐答案

Windows Narrator不是真正的屏幕阅读器,而是一个玩具!请使用免费的NVDA屏幕阅读器,而不是 http://www.nvaccess.org/.您发布的代码符合要求,并且可以与适当的屏幕阅读器(例如NVDA)一起使用.

Windows Narrator is not a real screen reader, it is a toy! Use the free NVDA screen reader instead http://www.nvaccess.org/. The code you posted is compliant and should work with a proper screen reader such as NVDA.

为此,请看一下屏幕阅读器社区实际使用的是什么

As evidence for this, look at what is actually being used by the screen reader community

http://webaim.org/projects/screenreadersurvey5/#primary

这篇关于Windows讲述人和aria- describeby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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