W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2005

[whatwg] [wf2] no value selected for type=range

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Mon, 01 Aug 2005 17:49:08 +0200
Message-ID: <20050801174908.blo877np9neowco0@webmail.annevankesteren.nl>
Quoting Anne van Kesteren <fora at annevankesteren.nl>:
> Should it fall back to its initial value which is defined
> to be equivalent to the value of the MIN attribute or should something else
> happen?

Found this:

# For value attributes that are invalid according to the min, max, step,
# maxlength, etc, attributes
#    The control must be set to that value. The form will not submit with that
# value, though. If the control cannot be set to that value (for example, a
# range control cannot represent values outside its range) then the value must
# be clamped to the nearest value that can be represented by the 
control. (This
# situation can also arise if these attributes are dynamically updated using
# the DOM.)

So it should clip to the nearest value. Which is basically MAX or MIN 
on which has overflow.

Anne van Kesteren
Received on Monday, 1 August 2005 08:49:08 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC