[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 #2 from Mounir Lamouri <mounir.lamouri@gmail.com> 2011-02-22 00:34:13 UTC ---
(In reply to comment #1)
> So you're saying that it should apply to all of:
> 
> <input type=number max="4711">
> <input type=number min="4711">
> <input type=number min="17" max="4711">

Yes.

> but not apply to any of:
> 
> <input type=number>
> <input type=text max="14">
> <input type=date>
> <input type=time>

I agree for <input type='text' max='14'> for the others, those types can be
limited (min and max apply to them). My original comment ask to have the
pseudo-classes always applying to number, range and date/times types (even if
min and max isn't present). I wouldn't disagree to have them apply only if min
or max is present but in that case, what should we do if min or max isn't
valid? (<input type='number' max="foo"> for example).
I think it's easier to understand and implement to have these pseudo-classes
applying to some types instead of applying for some types if a specific
attribute is present and valid.

-- 
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 00:34:15 UTC