什么会导致Chrome自动填充停止工作? [英] What would cause Chrome autofill to stop working?

查看:100
本文介绍了什么会导致Chrome自动填充停止工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用HTML5的新网站。除了LESS样式表和Facebook标签之外,所有的事情都可以验证。但是,Chrome无法正确自动填充。如果我在名字字段中输入'chr',我会在其下面选择标准的自动填充下拉菜单,但突出显示,单击或选择自动填充选项不会完成表格。

我猜在我的HTML中有一些令自动填充代码混淆的东西,但我似乎无法找到任何有关编辑:我知道Autofill工作正常,因为它适用于其他网站,甚至其他网站我们已经开发了。它必须是本网站HTML特有的内容。

解决方案

似乎Chrome只启用自动填充表单POST方法。这可能是最近版本的安全更新。



如果您这样做,自动填充功能可以正常工作:

< form id =myFormaction =?gomethod =post>



如果您省略了方法或设置为获得:

< form id =myFormaction =?go方法=get>



< form id =myFormaction =?go>


I've got a new site we're working that uses HTML5. Everything validates except for the LESS stylesheets and the Facebook tags. However, Chrome will not autofill properly. If I type 'chr' in the first name field, I get the standard Autofill drop down beneath it, but highlighting, clicking, or otherwise selecting the autofill option does not complete the form as it should. The autofill dropdown merely goes away.

I'm guessing there's something in my HTML that is confusing the autofill code, but I can't seem to find any information on the web about Chrome's autofill implementation and things to look for when it doesn't work.

Edit: I know Autofill is working properly because it works on other sites, even other sites we've developed. It's got to be something specific to the HTML on this site.

解决方案

It seems that Chrome only enables the autofill for forms with a POST method. This may have been a security update on a recent version.

Autofill will work if you do:

<form id="myForm" action="?go" method="post">

It won't work if you omit the method or it's set to get:

<form id="myForm" action="?go" method="get">

<form id="myForm" action="?go">

这篇关于什么会导致Chrome自动填充停止工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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