W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] :checked should match selected option elements

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 3 Aug 2010 00:33:09 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1008030032120.7470@ps20323.dreamhostps.com>
On Fri, 30 Apr 2010, L. David Baron wrote:
>
> http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#selector-checked
> defines what elements match the :checked pseudo-class.  However, I
> think it's missing an important case: selected option elements
> within a select.
> 
> http://www.w3.org/TR/css3-selectors/#checked says:
>   # For example, the :checked pseudo-class initially applies to such
>   # elements that have the HTML4 selected and checked attributes as
>   # described in Section 17.2.1 of HTML4, but of course the user can
>   # toggle "off" such elements in which case the :checked
>   # pseudo-class would no longer apply. 
> which clearly shows that it's the intent of css3-selectors that the
> pseudo-class apply in this case.
> 
> From looking at VCS history, Gecko has implemented :checked on option 
> elements since Gecko 1.8 == Firefox 1.5.

Fixed.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 2 August 2010 17:33:09 UTC

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