Re: Parsing problem with misnested tags

On Tue, 11 Nov 2008 23:59:10 +0100, Philip Taylor <pjt47@cam.ac.uk> wrote:

> HTML5 (or at least html5lib and validator.nu) currently parses
>
>    A<code><pre>B</code></pre>C
>
> into
>
>    |     "A"
>    |     <code>
>    |       <pre>
>    |         "B"
>    |       "C"
>
> In particular, the "C" is inside the <code>. In browsers (IE6, FF3,  
> O9.6, S3.0) the "C" is outside the <code> instead.

Firefox closes the <code> at the <pre> start tag. <code> seems to be a  
formatting element in WebKit. (Opera and IE both do things that can't be  
used in the spec.)

-- 
Simon Pieters
Opera Software

Received on Wednesday, 12 November 2008 13:03:59 UTC