如何让 Jaws 读取 aria-descriptedby 属性
问题如标题中所述,这是我的 HTML 代码。
<li> <a id="blog-setup" href="https://illinois.edu/toolbox/0.portlet?componentId=13&desktopId=1" aria-describedby="readme">setup</a> </li>
<div id="readme">HELLO WORLD</div>
Jaws 声明如下:“链接设置...按 Jaws 键、alt 键和 R 来读取所描述的咏叹调”。我期望 Jaws 会说“链接设置 Hello World”。
The problem is as mentioned in the title and here is what I have as my HTML code.
<li> <a id="blog-setup" href="https://illinois.edu/toolbox/0.portlet?componentId=13&desktopId=1" aria-describedby="readme">setup</a> </li>
<div id="readme">HELLO WORLD</div>
What happens is Jaws states the following: "Link setup...press the Jaws key, alt key, and R to read the aria-describedby". What I expect would be for Jaws to say "Link setup Hello World".
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
该行为是预期的(我并不是说它应该是这样),JAWS 从版本 12 开始就支持 aria-desiredby,它只是提醒用户它存在并读取快捷方式。如果您有 JAWS 12 或更高版本,您可以在 [HTML 属性行为表] 部分的 .smf 文件(JAWS 共享设置文件夹)中找到该消息,在我的 Classic.smf 中有一行
The behavior is what is intended (I'm not saying it is what it should be), JAWS has aria-describedby support since version 12 and it just alerts the user that it exists and reads the shortcut. If you have JAWS 12 or later, you can find the message in .smf files (JAWS shared settings folder) in [HTML Attribute Behavior Table] section, in my Classic.smf there is a line
就我而言,当我将焦点放在带有描述性文本的项目上,然后按 (INS + ALT + R) 时,JAWS 只会说“Alt R”,没有其他内容。知道为什么会发生这种情况吗?
In my case, when I focus the item with the descriptive text, and press (INS + ALT + R), JAWS simply says "Alt R" and nothing else. Any idea why is this happening?
它实际上可能与您在 JAWS 中使用的详细程度设置有关。 JAWS 允许用户在初始设置时选择最长的描述、标题、链接文本等。
另外,检查您正在测试的 JAWS 版本,最新版本是 JAWS 13.0。
It may actually relate to the verbosity setting you are using in JAWS. JAWS allows users to choose the longest, long desc, title, link text etc by user choice on initial set up.
Also, check which version of JAWS you are testing with, the newest version is JAWS 13.0.