[whatwg] autocompletetype vs autocomplete, type attributes
Kornel Lesiński
kornel at geekhood.net
Wed Jan 25 12:03:51 PST 2012
Google's annoucement of autocompletetype type[1] uses type="text" field
for e-mail input, which doesn't seem right given that HTML has <input
type="email"> already.
Should <input type="text" autocompletetype="email"> behave just like
<input type="email">? Similar ambiguity exists for <input type=text
autocompletetype=phone-full> and <input type=tel>.
Why not fold autocompletetype types into the existing type attribute (or
autocomplete attribute)? Type could be redefined as space-separated list,
so <input type="cc-full-name name-full section-billing"> could work just
like autocompletetype. It would be backwards compatible with HTML5 types
and fall back to text for new types or lists.
Having all of type, autocomplete and autocompletetype looks quite messy.
[1]
http://googlewebmastercentral.blogspot.com/2012/01/making-form-filling-faster-easier-and.html
--
regards, Kornel Lesiński
More information about the whatwg
mailing list