Chrome自动填充有哪些属性? [英] Which Attributes Does Chrome Autofill Expect?

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

问题描述

我希望将我们的网站与Chrome的地址自动填充绑定,但我无法找到任何有关如何呈现表单的参考。



我猜测它正在寻找表单中名称=字段中非常具体的内容,但是一个好的参考将会很好,而不必对其进行逆向工程。



在目前,Chrome并没有填写我们的任何表单,但Safari大部分都填满了。冒着同时提出两个问题的风险:任何人都可以获得Safari的参考资料吗? Safari似乎在使用我们的title =字段...

它不使用这个标准,是吗? http://www.ietf.org/rfc/rfc3106.txt

解决方案

有很多东西可以预期(就像 RFC3106 hCard格式),但最终归结于您可以在 Chromium 来源 代码,我猜。



这个特定的部分似乎是 Chromium的自动填充实施是概率您可以使用 Google代码搜索功能 for chromium 现在可通过 Google Code Project Hosting



某些 autofill_regex_constants.h 中定义了用于正则表达式的常量表达式 rel =nofollow>常量,并提供相当的广泛列表 a>(即使支持I18N)! autofill_regex_constants.cc.utf8


I was hoping to tie our site in with Chrome's Address Autofill, but I can't find any reference for how it expects the forms to be presented.

I'm guessing it's looking for something pretty specific in the name= fields of the forms, but a good reference would be nice, instead of having to reverse engineer it.

At the moment, Chrome fills none of our forms, but Safari fills most of them. At the risk of asking two questions at once: anyone got a reference for safari as well? Safari seems to be using our title= fields...

It doesn't use this standard, does it? http://www.ietf.org/rfc/rfc3106.txt

解决方案

There are a bunch of stuff that could be "expected" (like things in RFC3106 or the hCard format) but in the end it comes down to what you can find in the Chromium source code, I guess.

This specific section which seems to be Chromium's AutoFill implementation is probably of interest for you, which I found by using the Google Code Search feature for Chromium now available via Google Code Project Hosting.

Some of the constants are extern-ed used for regular expressions are defined in autofill_regex_constants.h and provided in a fairly extensive list (even with I18N support!) in autofill_regex_constants.cc.utf8.

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

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