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

[whatwg] Confusing text relating to <input type=range>

From: Jonathan Watt <jwatt@jwatt.org>
Date: Thu, 17 Jan 2013 20:07:31 +0000
Message-ID: <50F85A03.5000407@jwatt.org>
To: whatwg@lists.whatwg.org
The text on <input type=range> at:



   The step scale factor is 1. The default step is 1 (allowing only
   integers, unless the min attribute has a non-integer value).

I found the words "allowing only integers" to be confusing. I initially read it 
to mean that "step" is only allowed integer values unless the "min" attribute is 
a number with a fractional part. Talking it over with dbaron we believe it is 
probably just a parenthetical observation that if the "min" attribute's value is 
an integer and the default value of 1 for "step" is being used, then the input's 
value can only have integer values. (This is unclear because the input's value 
isn't otherwise mentioned in the sentence.)

Received on Thursday, 17 January 2013 20:08:01 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:52 UTC