Re: pseudo-attributes

fantasai wrote:
> Tab Atkins Jr. wrote:
>>
>> @David Baron:
>> The hint action can be done just as well with :empty:not(:focus).  Is 
>> there a reasonable use-case that :empty doesn't solve equally well?
> 
> :empty checks for descendent nodes in the DOM tree. Given that <input>
> is an empty element, wouldn't it /always/ match an unfocused input field?

Right. The contents of an input field are not visible from the input's
owner document object model besides the |value| attribute
and there is nothing in the DOM or HTML specs that says a user agent has
to do what Gecko does here, ie manage a shadow editable HTML document.

</Daniel>

Received on Wednesday, 29 October 2008 09:51:49 UTC