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

Ian Hickson ian at hixie.ch
Thu Oct 23 02:08:17 PDT 2008


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list