Last active
December 6, 2021 15:14
-
-
Save tak-dcxi/1d97e402da24e5813ff3acc9612f1f17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 「WHATWG Standard」のAutoFillについての仕様に記載されている項目を配列化したものです。 | |
* @example | |
* <input | |
* name={name} | |
* autoComplete={autoFillList.some((item) => item === name) ? name : null} | |
* /> | |
*/ | |
export const autoFillList = [ | |
'name', | |
'honorific-prefix', | |
'given-name', | |
'additional-name', | |
'family-name', | |
'honorific-suffix', | |
'nickname', | |
'username', | |
'new-password', | |
'current-password', | |
'one-time-code', | |
'organization-title', | |
'organization', | |
'street-address', | |
'address-line1', | |
'address-line2', | |
'address-line3', | |
'address-level4', | |
'address-level3', | |
'address-level2', | |
'address-level1', | |
'country', | |
'country-name', | |
'postal-code', | |
'cc-name', | |
'cc-given-name', | |
'cc-additional-name', | |
'cc-family-name', | |
'cc-number', | |
'cc-exp', | |
'cc-exp-month', | |
'cc-exp-year', | |
'cc-csc', | |
'cc-type', | |
'transaction-currency', | |
'transaction-amount', | |
'language', | |
'bday', | |
'bday-day', | |
'bday-month', | |
'bday-year', | |
'fax', | |
'home', | |
'mobile', | |
'sex', | |
'url', | |
'pager', | |
'photo', | |
'work', | |
'tel', | |
'tel-country-code', | |
'tel-national', | |
'tel-area-code', | |
'tel-local', | |
'tel-local-prefix', | |
'tel-local-suffix', | |
'tel-extension', | |
'email', | |
'impp', | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment