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

On Monday 2006-07-10 14:06 -0700, Garrett Smith wrote:
> 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.


L. David Baron                                <URL: >
           Technical Lead, Layout & CSS, Mozilla Corporation

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