W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2013

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

From: Steve Hoeksema <steve@kotiri.com>
Date: Fri, 28 Jun 2013 11:06:31 +1200
To: "whatwg@lists.whatwg.org" <whatwg@lists.whatwg.org>
Message-ID: <BEFAEBE551734DBAB68A12CB7E924FDE@kotiri.com>
> 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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:00 UTC