【问题标题】:Prevent jaws from saying "password" in password-type input fields防止下巴在密码类型的输入字段中说出“密码”
【发布时间】:2016-12-28 20:03:35
【问题描述】:

我有一个使用密码类型输入的字段 (<input type="password">)。它不是密码字段,但我们需要它的行为与密码字段完全相同。无论我们添加/放入什么标签,Jaws 都会将其读取为“what-ever-label password edit ...”

我怎样才能阻止 Jaws 说出 "password" 所以它只会说 "what-ever-label edit ..." (而不是单词 “密码”)而不创建自定义的类似密码的字段?

【问题讨论】:

标签: html passwords jaws-screen-reader


【解决方案1】:

目前最好的解决方案是在密码输入中添加 role="textbox"。虽然如果有文字,JAWS 会将它们读作 chrome 中的“what-ever-label edit bullet bullet bullet...”。现在这很好,因为它无论如何都不会读取确切的字符。如果有办法不让 JAWS 阅读文本(“子弹头”),请在此处发布您的答案。

【讨论】:

  • 感谢您分享这个!
  • 其他人注意:这适用于 Internet Explorer 和 Edge。但是 Firefox ESR 版本(基本上是 v56)仍然说额外的“密码”。我还没有设法让它停下来。
  • 仍然无法在 chrome 上运行
【解决方案2】:

尝试使用aria labels.

<input type="password" aria-label="whatever!">

文档说明它会起作用,让我知道!

【讨论】:

  • 它仍然说“密码”这个词
  • 你必须使用<input type="password"> 吗?您可以使用 <input type="text"> 和一些 CSS 来创建点
  • Firefox 的 CSS 是什么?不支持 -webkit-text-security 也不支持 text-security
  • 哎呀,这真是令人讨厌的情况。您是否尝试过按照此处的说明使用aria-labeledbyw3.org/WAI/GL/wiki/Using_aria-labelledby_for_link_purpose
  • 是的。这样做只会改变语音提示的标签部分,所以它会说“whateverlabelfromaria-labelledby password edit...”
猜你喜欢
  • 1970-01-01
  • 2019-09-14
  • 1970-01-01
  • 1970-01-01
  • 2015-01-30
  • 1970-01-01
  • 2013-02-24
  • 2013-11-18
  • 1970-01-01
相关资源
最近更新 更多