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

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