JAWS不会在IE中的选择框中宣布aria-describedby [英] JAWS does not announce aria-describedby on select box in IE
问题描述
我试图在选择框上使用aria-describeby,但JAWS不会在IE中宣布使用aria-describedby属性关联的文本。我甚至将tabindex = - 1添加到被引用的span标记中。下面是我使用的示例代码。
I am trying to use aria-describedby on select box, but JAWS does not announce the text associated using the aria-describedby attribute in IE. I have even added tabindex="-1" to the span tag which is being referenced.Below is the sample code I am using. Can somebody please provide me any information on this topic.
<form action="#" method="post">
<div>
<label for="State">State</label>
<select id="State" name="State" aria-describedby="spanId">
<option value="acct">Choose</option>
<option value="act">ACT</option>
<option value="nsw">NSW</option>
<option value="nt">NT</option>
<option value="qld">QLD</option>
<option value="sa">SA</option>
<option value="tas">TAS</option>
<option value="vic">VIC</option>
<option value="wa">WA</option>
</select>
<span id="spanId" tabindex="-1">This is the text</span>
</div>
</form>
推荐答案
使用IE11和Jaws 17好。
Using IE11 and Jaws 17 I have observed this issue as well.
我认为这是一个错误。
在Freedom Scientific解决之前,我建议使用 aria-labelledby
。
Until it's addressed by Freedom Scientific, I'd recommend using aria-labelledby
.
这意味着语义上略有不同:
This means something slightly different semantically:
一个标签描述了一个对象的本质,而描述
提供了用户可能需要的更多信息。
a label describes the essence of an object, while a description provides more information that the user might need.
来源: Mozilla开发者网络
但它可能是您拥有的最佳替代品。
But it's probably the best substitute you have available.
这篇关于JAWS不会在IE中的选择框中宣布aria-describedby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!