Re: Selectors Tests

Boris Zbarsky wrote:
> Lachlan Hunt wrote:
>>   Most elements will be neither enabled nor disabled. An element is
>>   enabled if the user can either activate it or transfer the focus to
>>   it. An element is disabled if it could be enabled, but the user cannot
>>   presently activate it or transfer focus to it.
> So should an <input type="text" style="display: none"> match :disabled, 
> by that reasoning?

Clearly, the selector shouldn't be affected by the element's styling. But

> Note that I raised that exact question in 
> I probably even agree that <input type="hidden"> shouldn't match 
> :enabled/:disabled, but I think the Selectors text as it stands doesn't 
> really say what we want it to say...


Lachlan Hunt - Opera Software

Received on Thursday, 30 October 2008 06:18:43 UTC