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

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


Lachlan Hunt wrote:
> New UAs could be updated to handle <p><ol>...</ol></p> correctly (when 
> an HTML5 doctype is used) as text/html.

Ouch, that would break everything and no UA would agree with such a 
descision. Making even more tag soup hacks would be very bad for the 
real world.


> <p>...
>   <object type="image/png" data="list.png"><ol>...</ol></object>
> <p>

Why would you replace text with an image here?


>> For instance, in the XHTML variant you can use embedded MathML.
>> Is this just a case like that?
>
> I don't think so.  MathML can't be used in HTML because there are no 
> namespaces.  Whereas, the only reason <p><ol/></p> can't be used in HTML 
> is for bugwards compatibility.

I assume you mean backwards compatibility as the HTML4 specification 
states how this should work.

I think MathML is an excellent example of something that is easy to 
introduce in XHTML documents but near impossible in HTML documents 
(although you could use the OBJECT element with the data URI scheme).


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>




More information about the whatwg mailing list