[whatwg] autocompletetype vs autocomplete, type attributes
kornel at geekhood.net
Wed Jan 25 12:03:51 PST 2012
Google's annoucement of autocompletetype type uses type="text" field
for e-mail input, which doesn't seem right given that HTML has <input
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.
regards, Kornel Lesiński
More information about the whatwg