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

Anne van Kesteren fora at annevankesteren.nl
Fri Apr 8 01:44:44 PDT 2005


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/>




More information about the whatwg mailing list