简体   繁体   English

JAWS使用span标记读取额外空间,或者如果span标记包含aria标记。 如何使用JAWS修复这个额外的空间

[英]JAWS read extra space with span tag, or if span tag has aria tags. How to fix this extra space with JAWS

Using JAWS to read character by character in chrome browser, observed that JAWS read extra space when encounter span tag and also read another space if span tag contains "tabindex=0" or any aria tag like aria-pressed="false" etc eg, <span tabindex="0" aria-pressed="false">text</span> 使用JAWS在chrome浏览器中逐个字符读取,观察到JAWS在遇到span标签时读取额外空间,如果span标签包含“tabindex = 0”或任何aria标签如aria-pressed =“false”等,则读取另一个空格,例如, <span tabindex="0" aria-pressed="false">text</span>

<!-- HTML Snippet below -->      
<div role="region" aria-label="Text">           
    text1 text2 <span aria-pressed="true" role="button" tabindex="0">text3</span></div> 

When I use JAWS I can hear 3 space after 'text2'. 当我使用JAWS时,我可以在'text2'之后听到3个空格。 How to fix this issue so that JAWS do not read these extra space when browse content through arrow key. 如何解决此问题,以便JAWS在通过箭头键浏览内容时不会读取这些额外空间。

I believe you're trying to create customized checkbox or radio button switch. 我相信你正在尝试创建自定义复选框或单选按钮开关。

Unfortunately, I've also faced same problem. 不幸的是,我也面临同样的问题。 JAWS reader behaves in unpredictable ways with up/down arrow keys. JAWS阅读器使用向上/向下箭头键以不可预测的方式运行。

What I would do is try to follow accessibility specs and see if it works in other screen readers. 我要做的是尝试遵循可访问性规范,看看它是否适用于其他屏幕阅读器。 If it does, most likely it is an issue with a screen reader in question. 如果是这样,很可能是有问题的屏幕阅读器的问题。

In above case, I am quite sure it is because I have faced the same issue under different circumstances. 在上述情况下,我很确定这是因为我在不同的情况下遇到了同样的问题。

don't worry about this. 不要担心这个。 JAWS has some quirks and their users are used to working with them. JAWS有一些怪癖,他们的用户习惯使用它们。 Even if you found a fix for your own pages, as soon as users leave your website they'll need to deal with the same issue everywhere else. 即使您找到了自己网页的修复程序,只要用户离开您的网站,他们就需要在其他任何地方处理相同的问题。 It's not a big deal and it won't fail against any accessibility guidelines, so I'd leave it alone and concentrate on issues that could cause real problems. 这不是什么大不了的事情,并且它不会违反任何可访问性指南,所以我会不管它并专注于可能导致实际问题的问题。 This one shouldn't cause much of a problem for anyone. 这个不应该对任何人造成太大问题。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM