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?

No.


> 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
  <http://annevankesteren.nl/>
Received on Friday, 8 April 2005 01:44:44 UTC

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