[whatwg] :enabled and :disabled pseudo-classes should apply on fieldset elements

Ian Hickson ian at hixie.ch
Tue Dec 7 17:08:29 PST 2010


On Sun, 12 Sep 2010, Mounir Lamouri wrote:
> 
> The current state of the specifications do not mention fieldset elements 
> for the :enabled and :disabled pseudo-classes but fieldset can be 
> disabled so I guess it might be convenient to have these pseudo-classes 
> applied to them.
> 
> Opera applies :disabled and :enabled to fieldset elements and Mozilla 
> might do the same.

It's not really the <fieldset> that is enabled/disabled, it's the 
controls within it. Put it this way: if we dropped support for disabled="" 
from the spec, I think one would still argue that <input> is :enabled, but 
I don't think one would argue that <fieldset> is :enabled. Case in point, 
nobody argued that <fieldset> should match :enabled before we added the 
disabled="" attribute to it.

-- 
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