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

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

From: Anne van Kesteren <fora@annevankesteren.nl>
Date: Fri, 08 Apr 2005 10:44:44 +0200
Message-ID: <4256447C.3010706@annevankesteren.nl>
Michael Gratton wrote:
> 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.

No, that is not true. We are talking about the XML situation here. Not 
about the tag soup situation. In XML your markup is treated as you write it.

  Anne van Kesteren
Received on Friday, 8 April 2005 01:44:44 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:40 UTC