W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] [WF2] The :in-range and :out-of-range pseudo classes

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 23 Oct 2008 09:08:17 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0810230907510.1237@hixie.dreamhostps.com>
On Mon, 2 Oct 2006, Arve Bersvendsen wrote:
>
> In chapter 8.2 of the WF2 draft, 
> <URL:http://whatwg.org/specs/web-forms/current-work/#relation> 
> additional CSS pseudo-classes are specified. Are file upload controls 
> left out of the definition of :in-range and :out-of-range on purpose, or 
> is it an oversight in the specification?
> 
> :in-range Matches numeric, date-related, or time-related form control 
> elements which have a min or max attribute set and whose validity 
> objects have none of the typeMismatch, rangeUnderflow, and rangeOverflow 
> flags set.
> 
> :out-of-range Matches numeric, date-related, or time-related form 
> control elements which have a min or max attribute set and whose 
> validity objects have one or both of the rangeUnderflow and 
> rangeOverflow flags set.

This is now academic, since min and max no longer apply to type=file. 
(We'll probably introduce a 'multiple' attribute for this case.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 23 October 2008 02:08:17 UTC

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