是否自动完成=“关闭"?兼容所有现代浏览器? [英] Is autocomplete="off" compatible with all modern browsers?
问题描述
我刚刚收到了一项要求,以防止浏览器保存输入到特定表单字段中的数据.我已经有很多年没有做网络开发了,这是一个相对较新的能力.我能够找到表单字段属性 autocomplete="off",但似乎找不到任何说明哪些浏览器支持它的文档.任何人都可以指出表单属性和浏览器兼容性图表的正确方向吗?
I've just been given a requirement to prevent browsers from saving data entered into specific form fields. It's been years since I've done web dev, and this is a relatively new capability. I was able to find the form field property autocomplete="off", but I can't seem to find any documentation indicating which browsers support it. Can anyone point me in the right direction of a chart of form attributes and browser compatibility?
推荐答案
请注意,所有主要浏览器都在朝着 忽略该属性的方向发展用于密码字段.
我只能提供轶事证据,但我还没有遇到过不尊重 autocomplete="off"
的浏览器,这种体验涵盖:
I can only offer anecdotal evidence, but I've yet to come across a browser that fails to respect autocomplete="off"
, this experience covers:
- Firefox 1.5+(Windows 和 Ubuntu)
- Opera 6+(Windows 和 Ubuntu)
- Chrome v2+(Windows 和 Ubuntu)
- Epiphany 0.8 (ish) (Ubuntu)
- Midori(我不记得是哪个版本)
- Safari v1+ (Windows)
- IE 4 - 8,Windows.
我知道 Greasemonkey 脚本以及可能的其他用户脚本可以禁用 autocomplete
设置.
I'm aware that Greasemonkey scripts, and presumably other user-scripts, can disable the autocomplete
setting.
我发现有几篇文章可能对您有用:
There's a couple of articles I found that might be useful to you:
这篇关于是否自动完成=“关闭"?兼容所有现代浏览器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!