在Chrome 63中停用自动填充 [英] Disable autofill in Chrome 63

查看:54
本文介绍了在Chrome 63中停用自动填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将浏览器更新为Chrome版本63.0.3239.84(正式版本)(64位).

I just updated my browser to Chrome Version 63.0.3239.84 (Official Build) (64-bit).

然后我继续进入我的网站,在那里我有一个带有autocomplete='off'的输入框,但仍然得到以下信息:

I then proceeded to go on my website, where I have a input box with autocomplete='off', yet I still get the following:

(您可以在下面看到我的内置建议下拉列表)

(You can see my inbuilt suggestion dropdown below it)

以前从来没有这样.没有其他改变!

为什么会这样?这是新版chrome中的错误吗?我尝试了所有其他建议,例如autocomplete="false"或将autocomplete = off应用于表单.页面加载后,我什至尝试将它们与jquery一起应用,但也没有运气.

Why is this happening? Is this a bug in the new version of chrome? I have tried all other suggestions like autocomplete="false" or applying autocomplete=off to the form too. I have even tried to apply these with jquery after the page has loaded but also no luck.

我已经在多台机器上对此进行了测试,并在不同的操作系统上使用了最新版本的chrome.问题仍然存在.

I have tested this on multiple machines with the newest version of chrome on different operating systems. The issue persists.

推荐答案

2018年2月更新:

感谢@JamesNisbet在评论中指出这一点.

Thanks to @JamesNisbet for pointing this out in the comments.

根据 Chrome小组,autocomplete = "off"和autocomplete ="false"将会被忽略.这不是Chrome中的临时回归.

According to the Chrome team, autocomplete="off" and autocomplete="false" will be ignored moving forward. This is not a temporary regression in Chrome.

Chrome浏览器将尝试自动填充 WHATWG之后的所有表单字段自动填充的标准.除了一个例外,它们会忽略"off"和"false"值.

Chrome will attempt to autofill any form fields that follow the WHATWG standard on autocomplete. With one exception, they ignore "off" and "false" values.

总而言之,要禁用自动填充,请使用autocomplete属性,该属性的值不在WHATWG列表中.

In summary, to disable autofill, use the autocomplete attribute with a value that is not on the WHATWG list.

说明您为什么认为Chrome不应该在此Chromium线程.

Make your case why you think autocomplete="off" should not be ignored by Chrome in this Chromium thread.

看起来像Chrome 63中可能的回归.在Chrome的原始自动填充文档中:

Looks like a possible regression in Chrome 63. In Chrome's original autofill documentation:

过去,许多开发人员会在其表单字段中添加autocomplete ="off",以防止浏览器执行任何类型的自动完成功能.尽管Chrome仍然会将此标记用于自动填充数据,但不会将其用于自动填充数据.那么什么时候应该使用autocomplete ="off"?一个示例是您实现了自己的自动完成搜索版本.

In the past, many developers would add autocomplete="off" to their form fields to prevent the browser from performing any kind of autocomplete functionality. While Chrome will still respect this tag for autocomplete data, it will not respect it for autofill data. So when should you use autocomplete="off"? One example is when you've implemented your own version of autocomplete for search.

https://developers.google.com/web/updates/2015/06/checkout-faster-with-autofill

尽管并不清楚它们是不同的,但它们确实在自动完成和自动填充之间进行了区分.

They do make a distinction between autocomplete and autofill, although it's not clear they are different.

Chrome,Safari和Edge都在尝试实现自动填充功能,但尚无明确的标准.他们关注的是name属性,而不是显式的标准化属性.

Chrome, Safari, and Edge are all attempting to implement autofill but there is no clear standard. They look at the name attribute rather than an explicit, standardized attribute.

就目前而言,autocomplete="something-new"是一个不错的解决方法,尽管从语法上讲这没有任何意义.这似乎可行,因为浏览器无法理解它.

For now autocomplete="something-new" is a good workaround, although syntactically it makes no sense. This seems to work because the browser can't understand it.

这篇关于在Chrome 63中停用自动填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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