自动完成=“关闭”与所有现代浏览器兼容? [英] Is autocomplete="off" compatible with all modern browsers?

查看:110
本文介绍了自动完成=“关闭”与所有现代浏览器兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚被要求阻止浏览器保存输入到特定表单域的数据。我已经完成了网页开发已有数年了,这是一个相对较新的功能。我能够找到表单字段属性autocomplete =off,但我似乎无法找到任何文档指出哪些浏览器支持它。任何人都可以指向我的表单属性和浏览器兼容性图表的正确方向吗? 解决方案

请注意,所有主要浏览器正在向忽略密码字段的属性



我只能提供一些轶事证据,但我还没有遇到一个浏览器不能尊重 autocomplete =off,这个体验包括:




  • Firefox 1.5+(Windows和Ubuntu)

  • Opera 6+
  • Chrome v2 +(Windows和Ubuntu)
  • Epiphany 0.8(ish)(Ubuntu)

  • Midori请记住哪个版本)

  • Safari v1 +(Windows)

  • IE 4 - 8,Windows。

    我知道Greasemonkey脚本以及其他用户脚本可以禁用 autocomplete 设置。



    有几个arti cles我发现这可能对你有用:


    1. 如何关闭表单自动完成功能
    2. 在html表单中使用自动填写功能


    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?

    解决方案

    Be aware that all major browsers are moving towards ignoring the attribute for password fields.

    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 and Ubuntu)
    • Opera 6+ (Windows and Ubuntu)
    • Chrome v2+ (Windows and Ubuntu)
    • Epiphany 0.8 (ish) (Ubuntu)
    • Midori (I can't remember which version)
    • Safari v1+ (Windows)
    • IE 4 - 8, Windows.

    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:

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

    这篇关于自动完成=“关闭”与所有现代浏览器兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆