W3C home > Mailing lists > Public > public-html@w3.org > March 2015

Re: input type number

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Wed, 11 Mar 2015 11:50:32 -0400
Message-ID: <55006448.1070102@mit.edu>
To: public-html@w3.org
On 3/11/15 11:32 AM, Richard Dunne wrote:
> Creating the number type for the html input tag was useful, but it has a
> drawback. There may be a case for entering a negative number into a
> forms text field, but I can't think of one.

Any place you'd normally use negative numbers?  Interest rates in 
Europe, say.

> I would make the case that
> the number type should be restricted to non-negative integer values.

You can use min="0" to do that for the ones you know should be thus 
restricted, right?

-Boris
Received on Wednesday, 11 March 2015 15:51:07 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:42 UTC