W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2008

[whatwg] Multi-block dicta within DIALOG

From: Geoffrey Sneddon <foolistbar@googlemail.com>
Date: Sun, 23 Nov 2008 21:52:36 +0000
Message-ID: <F748E346-9153-4227-90DA-7D5EF630AF1C@googlemail.com>

On 23 Nov 2008, at 20:11, Benjamin Hawkes-Lewis wrote:

> I'm wondering whether:
>
> <dt>Jack White</dt>
> <dd>foobar<p>baz</p><p>quux</p></dd>
>
> is equivalent to or different to:
>
> <dt>Jack White</dt>
> <dd><p>foobar</p><p>baz</p><p>quux</p></dd>

Semantically equivalent, though different in the trees they produce  
(in the former "foobar" is a text node child of the dd element, in the  
latter it is a text node child of the first p element child of the dd  
element).

> and whether
>
> <dt>Jack White</dt>
> <dd>foobar</dd>
>
> is equivalent to or different to:
>
> <dt>Jack White</dt>
> <dd><p>foobar</p></dd>

Same ? semantically equivalent, though different in the trees they  
produce (in the former "foobar" is a text node child of the dd  
element, in the latter it is a text node child of the p element child  
of the dd element).

> Does DD have an implicit P, much as it has an implicit Q/BLOCKQUOTE?

No: a run of text nodes (and phrasing content elements) is a  
paragraph, much like an explicit one created by the p element. <http://www.whatwg.org/specs/web-apps/current-work/#paragraphs 
 > details this in-depth.


--
Geoffrey Sneddon
<http://gsnedders.com/>
Received on Sunday, 23 November 2008 13:52:36 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:07 UTC