我正在寻找主要浏览器中自动填充功能可识别的表单字段名称()的完整列表.
以下是我发现使用反复试验在Safari中工作的一些内容:
email
Ecom_ReceiptTo_Postal_Name_First
Ecom_ReceiptTo_Postal_Name_Last
first-name
firstname
last-name
lastname
full-name
birthday
company
jobtitle
phone
street
city
country
state
(用于美国以外的县)
postalcode
zip
但是我找不到标题/敬语前缀的单独字段(它仅包含在全名中).
Opera的Wand识别或多或少相同的名称,但名称除外,这需要Ecom_ReceiptTo_Postal_Name_First
和Ecom_ReceiptTo_Postal_Name_Last
.
我找不到手机号码的字段.没有办法获得单独的家庭/工作领域.
有人建议扩展autocomplete
属性以允许开发人员明确指定这些.
根据http://www.macosxhints.com/article.php?story=20070527063904285,Safari.app包中的文件Contents/Resources/English.lproj/ABAutoCompleteMappings.plist引导此列表:
first first name fname firstname given name middle initial middleinitial middle name middlename middle last last name lname lastname surname name birthday date of birth born job title jobtitle email e-mail street street address streetaddress address1 address 1 address city state zip zipcode zip code postalcode postal code country homephone home phone eveningphone evening phone home area code home areacode homeareacode evening area code evening areacode eveningareacode workphone work phone dayphone day phone daytime phone companyphone company phone businessphone business phone work area code work areacode workareacode day area code day areacode dayareacode company area code company areacode companyareacode business area code business areacode businessareacode mobilephone mobile phone cellphone cell phone mobile area code mobile areacode mobileareacode cell area code cell areacode cellareacode pagerphone pager phone pager area code pager areacode pagerareacode area code areacode phone fax organization company
我不知道你用过的名字.但我知道Mozilla/Netscape和IE使用vcard_name属性来指导自动填充,如此处所述.