简体   繁体   English

防止钳口在密码类型输入字段中说“密码”

[英]Prevent jaws from saying “password” in password-type input fields

I have a field which uses a password-type input ( <input type="password"> ). 我有一个使用密码类型输入的字段( <input type="password"> )。 It is not a password field but we need it to behave exactly like a password field. 它不是密码字段,但我们需要它的行为与密码字段完全相同。 Whatever label we add/put in, Jaws reads it as "what-ever-label password edit ..." . 无论我们添加/放入什么标签,Jaws都会将其视为“什么标签密码编辑......”

How can I prevent Jaws from saying "password" so it would only say "what-ever-label edit ..." (just not the word "password" ) without creating a custom password-like field? 如何在不创建类似自定义密码的字段的情况下,阻止大白鲨说“密码”,这样它只会说“有什么标签编辑...” (只是不是“密码”这个词)?

Best solution so far is to add role="textbox" to the password input. 到目前为止,最佳解决方案是在密码输入中添加role =“textbox”。 Though if there is a text written, JAWS read them as "what-ever-label edit bullet bullet bullet..." in chrome. 虽然如果有文字写入,JAWS会将它们视为“有史以来任何标签编辑子弹子弹......”。 This is good for now as it is not reading the exact characters anyway. 这是好事,因为它无论如何都不会读取确切的字符。 If there is way to not let JAWS read the text ("bullet bullet") please post your answers here. 如果有办法不让JAWS阅读文本(“子弹子弹”),请在此处发布您的答案。

Try using aria labels. 尝试使用咏叹调标签。

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

Documentation states it would work, let me know! 文档说它会起作用,让我知道!

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

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