[whatwg] [WF2] type=number and leading zeros

Ian Hickson ian at hixie.ch
Tue Aug 15 00:43:19 PDT 2006


On Tue, 21 Mar 2006, Hallvord Reiar Michaelsen Steen wrote:
> >
> > If the field is for a postcode or credit card number, then type=number 
> > is an inappropriate field type. Those aren't numbers, they're 
> > specially formatted strings.
> 
> Thanks for clarifying. Could the spec give clearer advice to authors on 
> this point? We've come across this problem in the wild (it is perhaps 
> more likely to be part of a custom form validation than an attempt at 
> following WF2 but I can see authors getting a bit too excited about the 
> new types and label anything that looks like a number with type=number.)

Done.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list