gpt4 book ai didi

html - 自动完成 ="off"是否与所有现代浏览器兼容?

转载 作者:技术小花猫 更新时间:2023-10-29 11:29:27 25 4
gpt4 key购买 nike

我刚刚接到一项要求,要求阻止浏览器保存输入到特定表单字段中的数据。我从事 Web 开发已经有好几年了,这是一项相对较新的能力。我能够找到表单字段属性 autocomplete="off",但我似乎找不到任何说明哪些浏览器支持它的文档。谁能指出表单属性和浏览器兼容性图表的正确方向?

最佳答案

请注意,所有主流浏览器都在转向 ignoring the attribute for password fields .

我只能提供轶事证据,但我还没有遇到不遵守 autocomplete="off" 的浏览器,这种体验包括:

  • 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 设置。

我发现有几篇文章可能对您有用:

  1. How to turn off form auto-completion
  2. Using auto-complete in html forms

关于html - 自动完成 ="off"是否与所有现代浏览器兼容?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3868299/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com