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

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 UTC