W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2005

[whatwg] <p> elements containing other block-level elements

From: Michael Gratton <michael@quuxo.com>
Date: Fri, 8 Apr 2005 11:03:32 +0930
Message-ID: <293809e7622b45b201d5fc8abff2a14e@quuxo.com>

On 08/04/2005, at 8:47, Matthew Thomas wrote:
> <p>It makes sense to allow bulleted/numbered lists inside paragraphs, 
> for two reasons:<ul>
> <li>such lists are already used in typography</li>
> <li>they would have acceptable presentation in UAs that claim HTML4
>     support.</li>
> </ul>But as for inline lists, I think creating markup for them would 
> be a waste of time.</p>

I wonder if having nested block elements could make CSS author's life 
harder?

As was pointed out elsewhere on this thread (list?), existing UAs would 
implicitly close any outer block elements upon encountering a nested 
block element. So the example above would be treated as:

<p>...</p>
<ul>...</ul>
<p>...</p>

Or similar. WF2/HTML5 UAs wouldn't do this, of course.

If a CSS author for example specified padding for both the P and the UL 
elements, then wouldn't the results would be different depending on the 
UA's support for WF2/HTML5? Depending on how the legacy browser works, 
it might not be possible to work around this problem using 
child/descendent selectors.

Mike.

-- 
Michael Gratton, Software Architect.
Quuxo Software <http://web.quuxo.com/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20050408/ffb7f2c9/attachment.pgp>
Received on Thursday, 7 April 2005 18:33:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:22 UTC