W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > February 2011

[Bug 12151] :in-range and :out-of-range should only apply to input elements with a type for which min or max apply

From: <bugzilla@jessica.w3.org>
Date: Tue, 22 Feb 2011 05:47:41 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1Prl65-0005QG-OT@jessica.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12151

--- Comment #3 from Jonas Sicking <jonas@sicking.cc> 2011-02-22 05:47:40 UTC ---
To me it seems most consistent to have them apply only if there in fact is a
range.

While it's more common to talk about ranges of numbers, in database contexts
it's quite common to talk about ranges of strings. For example you can request
all records between "a" and "c" which would include "aa" and "azzz", but not
"d".

So I think it's most consistent if the classes apply only if an actual range
limitation is imposed on the submitted value. Which would mean for:

<input type=number max=4711>
<input type=date min="1987-06-06">

but not for any of

<input type=number>
<input type=number max="foo">
<input type=date min="yesterday-ish">

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 22 February 2011 05:47:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 February 2011 05:47:55 GMT