表单字段有命名约定吗? Chrome、IE、Firefox 寻找哪些领域?我的意思是,适用于所有人,或者至少适用于大多数现代浏览器。
我偶然发现:
- http://wonderivelyflawed.com/2009/02/17/rails-forms-microformat http://wonderfullyflawed.com/2009/02/17/rails-forms-microformat
-
http://acidmartin.wordpress.com/2008/10/28/using-ecml-11-to-make-website-forms-company-with-google-toobar-autofill-and-wand/ http://acidmartin.wordpress.com/2008/10/28/using-ecml-11-to-make-website-forms-compatible-with-google-toobar-autofill-and-wand/-> 谈论http://www.ietf.org/rfc/rfc3106.txt http://www.ietf.org/rfc/rfc3106.txt
- HTML 表单命名约定的名称 https://stackoverflow.com/questions/2142591/names-of-html-form-naming-conventions
- 浏览器(Safari、Opera)中自动填写个人数据使用的表单字段名称 https://stackoverflow.com/questions/1027462/form-field-names-used-by-personal-data-auto-fill-in-browsers-safari-opera
例如ECML 方法使用这样的名称:
Description Field name
----------------------------------------------------------
ship to title Ecom_ShipTo_Postal_Name_Prefix
ship to first name Ecom_ShipTo_Postal_Name_First
ship to middle name Ecom_ShipTo_Postal_Name_Middle
ship to last name Ecom_ShipTo_Postal_Name_Last
user ID Ecom_User_ID
user password Ecom_User_Password
但那些“Ecom_...”表单字段对我来说似乎很奇怪?
我知道 IE-only 和专有(当然)属性VCARD_NAME="vCard.xyz"
,但它是一个无效的 html 属性。
或者是最好的选择,以最常见的方式编写字段,如@F。 B.建议在浏览器(Safari、Opera)中自动填写个人数据使用的表单字段名称 https://stackoverflow.com/questions/1027462/form-field-names-used-by-personal-data-auto-fill-in-browsers-safari-opera/1348601#1348601
小更新(2015-07-21)-刚刚偶然发现了这一点谷歌开发者博客 https://developers.google.com/web/updates/2015/06/checkout-faster-with-autofill帖子提到了HTML 内容工作组自动填充的规格:
https://html.spec.whatwg.org/multipage/forms.html#autofill https://html.spec.whatwg.org/multipage/forms.html#autofill
您似乎已链接到答案。但是,如果您不使用 CakePHP 或 Ruby on Rails 等高级框架,则第一个和第三个链接不适用。
问题是,它是 Google 工具栏和 Wand 的job成功填写表格。鉴于互联网的范围,工具栏必须具有tons的冗余。
因此,只要您保留表单字段语义命名,表格应该自动填写。
ECML 是电子商务建模语言。Ecom_
简单地代表电子商务。如果您需要出售东西,请使用该命名约定。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)