W3C home > Mailing lists > Public > www-style@w3.org > July 2006

Re: [CSS 3 Selectors] :empty -- Definition Error

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 10 Jul 2006 14:18:50 -0700
To: www-style@w3.org
Message-ID: <20060710211850.GA25634@ridley.dbaron.org>
On Monday 2006-07-10 14:06 -0700, Garrett Smith wrote:
> http://www.w3.org/TR/css3-selectors/
> 
> E:empty  - an E element that has no children (including text nodes)
> 
> If you really want to include text nodes, the definition must be changed.
> 
> E:empty  - a node E that has no children (including text nodes).
> 
> The error is that text nodes are not elements nodes. e.g. a text node cannot
> be element E because a text node is not an element.

No, the "including" refers to "children", not "element".

It could be clearer, but that change would make it worse, not better.

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Received on Monday, 10 July 2006 21:19:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:45 GMT