Re: Selectors Tests

On Oct 29, 2008, at 2:41 PM, 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?

Is that a purely philosophical question, or does it matter somehow?  
Given that it is not rendered and takes up no space, and that it will  
not be disabled if display changes to something other than "none",  
then matching or not would seem to make little or no difference.

Received on Thursday, 30 October 2008 04:37:20 UTC