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

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

Received on Friday, 8 April 2005 01:49:55 UTC