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

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 UTC