W3C home > Mailing lists > Public > www-style@w3.org > August 2005

Re: CSS 2.1 Block inside inline behaviour

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Fri, 26 Aug 2005 03:50:15 -0500
Message-ID: <430ED7C7.30601@mit.edu>
To: David Woolley <david@djwhome.demon.co.uk>
CC: www-style@w3.org

David Woolley wrote:
> This is invalid code, so what you are probaby seeing is differences in
> error recovery.  In particular, what you are probably seeing, in one
> case, is the parser fixing the code by inserting </span> when it finds
> the element that is incompatible with its content model, and in the
> other case, the parse ignoring the content model.

While this is indeed invalid code, and I agree 100% that setting display should 
be used instead of this for testing, IE and Gecko both parse <span><div/></span> 
the same way last I checked -- the <div> is allowed inside the <span>.  Too many 
websites use <span> as some sort of generic container to do anything else with 
it.  :(

Received on Friday, 26 August 2005 08:50:19 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:20 UTC