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

Re: WF2 step attribute

From: Rene Saarsoo <nene@triin.net>
Date: Sun, 25 Mar 2007 23:33:47 +0300
To: public-html@w3.org
Message-ID: <op.tprh2lisexn25i@localhost>

Dave Raggett wrote:

> The current WF2 spec says:
> "For numeric controls, the default value
>   of the step attribute is 1."
>[snip] how do you indicate an infinitesimally small value with
> step without an ugly assumption about the precision the implementation  
> is using to represent floating point numbers?

 From the same document, a few paragraphs below:

   "In addition, for any of the types, the literal value *any* may
    be used as the value of the step attribute. This keyword
    indicates that any value may be used (within the bounds of
    other restrictions placed on the control).

      The following control would allow any floating point number:

      <input type="number" step="any" name="n">

Hopefully this answers your question.

Rene Saarsoo
Received on Sunday, 25 March 2007 21:33:17 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:21:34 UTC