W3C home > Mailing lists > Public > www-style@w3.org > March 2011

Re: [CSS21] Objection over Issue 203 (clearance and hypothetical position) (Was: Re: [CSS21] Clearance - the missing manual)

From: Chris Lilley <chris@w3.org>
Date: Fri, 25 Mar 2011 18:30:31 +0100
Message-ID: <159759060.20110325183031@w3.org>
To: Øyvind Stenhaug <oyvinds@opera.com>
CC: www-style@w3.org
On Friday, March 25, 2011, 12:11:26 PM, Øyvind wrote:

ØS> On Thu, 24 Mar 2011 21:37:20 +0100, fantasai  
ØS> <fantasai.lists@inkedblade.net> wrote:

>> While we're in this section, Arron and I noticed that the first paragraph
>> of the first clearance example is self contradicting (B2 has no children,
>> but is not empty?)

ØS> Doesn't sound like a contradiction to me. CSS talks about the document
ØS> tree as a tree of elements, and a child of an element is an element.

ØS> http://www.w3.org/TR/CSS21/conform.html#doctree

ØS> <p style="clear:both">So, as I understand it, this could be B2.</p>

Right. The codument tree model considers elements as children and does not consider attributes or text content as children.

Here is an element which has no children and *is* empty

<hr style="clear:both" />


While the DOM considers attributes and text nodes as children.

-- 
 Chris Lilley   Technical Director, Interaction Domain                 
 W3C Graphics Activity Lead, Fonts Activity Lead
 Co-Chair, W3C Hypertext CG
 Member, CSS, WebFonts, SVG Working Groups
Received on Friday, 25 March 2011 17:30:35 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:38 GMT