W3C home > Mailing lists > Public > www-style@w3.org > October 2008

Re: pseudo-attributes

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Wed, 29 Oct 2008 10:51:10 +0100
Message-ID: <4908320E.1000002@disruptive-innovations.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: "Tab Atkins Jr." <jackalmage@gmail.com>, "L. David Baron" <dbaron@dbaron.org>, www-style@w3.org

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.

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:40 UTC