Re: [whatwg] Maxlength attribute on input[type=number]

> Numeric codes are almost certainly actually type=text, with a
> pattern="\d+" or the like. If the first digit is allowed to be 0,
> it's not type=number. Note that we have the inputmode attribute
> <http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html#input-modalities:-the-inputmode-attribute>
> to still indicate that the on-screen keyboard should be numeric rather
> than alphabetic.

I hadn't considered the case of a leading zero. I guess inputmode will do what I need, even if its not supported yet. Thanks for your help.

Received on Thursday, 27 June 2013 23:06:59 UTC