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

restrictions on blocks inside inlines (was Re: HTML5 Authoring Conformance Study)

From: L. David Baron <dbaron@dbaron.org>
Date: Sun, 21 Mar 2010 12:14:36 -0400
To: HTMLwg WG <public-html@w3.org>
Message-ID: <20100321161436.GA356@pickering.dbaron.org>
On Sunday 2010-03-21 08:22 -0400, Sam Ruby wrote:
> youtube.com:
> 
> What interop issues are solved by disallowing div elements inside of
> span elements?

Blocks inside inlines can, in some cases, cause larger numbers of
CSS boxes to be present than the author probably expects, which I
believe in some cases causes performance degradation.  (I've seen
cases in the past where such performance degradation was
significant, although those cases may have been fixed in our
implementation.)

In many cases, the author intends the outer element to have block
formatting.  In the other cases, I believe the resulting formatting
is non-tree-like, which confuses the mental model of the HTML
element structure representing a tree.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Sunday, 21 March 2010 18:55:37 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:59 UTC