[whatwg] autocompletetype vs autocomplete, type attributes

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

Received on Wednesday, 25 January 2012 12:03:51 UTC