W3C home > Mailing lists > Public > public-html@w3.org > June 2010

Re: HTML4 Diffs - Object, again

From: L. David Baron <dbaron@dbaron.org>
Date: Sat, 26 Jun 2010 20:52:19 -0700
To: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Cc: Anne van Kesteren <annevk@opera.com>, HTML WG <public-html@w3.org>
Message-ID: <20100627035219.GA4777@pickering.dbaron.org>
On Sunday 2010-06-27 04:59 +0200, Leif Halvard Silli wrote:
> can you track down and put into the Differences document some data 
> about _when_ and _why_ HTML5 changed the content model of <object>? 
> Example of the issue:
> <p>
>      <object type="image/gif" data="image">
>         <p>Foo.</p>
>      </object>
> </p>
> The above is legal in HTML4, but illegal in HTML5.I've already a bug to 
> get back the HTML4 content model: 
> http://www.w3.org/Bugs/Public/show_bug.cgi?id=9657

I think the HTML4 model was just a spec bug resulting from the use
of DTDs to express the restrictions of the language.  Why would you
want <object> to let pages violate a whole bunch of the rules of the
content model of the language?

I could understand saying that you want to allow nested paragraphs
in general.  (It's not compatible with text/html-parsing, though.)
But why would you want to allow nested paragraphs only when there is
an object element between them?


L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Sunday, 27 June 2010 03:53:02 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:20 UTC