W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2006

[whatwg] Tag Soup: Blocks-in-inlines

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Thu, 26 Jan 2006 13:34:38 +1100
Message-ID: <43D8353E.6040206@lachy.id.au>
Billy Wong wrote:
> On 1/26/06, Henri Sivonen <hsivonen at iki.fi> wrote:
>> On Jan 25, 2006, at 17:17, Billy Wong wrote:
>>> Sorry.  I don't notice that this is invaild.  I am new here.  What
>>> makes inline-level element not feasible to contain block-level
>>> elements??
>> The HTML 4.01 Transitional DTD. Gecko and WebCore try to force the
>> document tree to be a sane Transitional document tree.
> But I am still not clever enough to grasp it.  For
> "<span><div></div><div></div></span>", what is pratically preventing
> it from being a sane document tree, so that it has to be defined
> invalid in HTML 4.01?

Nothing is preventing that from being a well-formed tree, it's just 
invalid in HTML 4.01 because of the way the conforming content models 
have been defined for inline elements.  Semantically, it makes no sense 
at all to put a block level element within an inline element.

Lachlan Hunt
Received on Wednesday, 25 January 2006 18:34:38 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:44 UTC