Re: CSS 2.1 Block inside inline behaviour

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.  :(

-Boris

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