W3C home > Mailing lists > Public > public-html@w3.org > November 2008

Re: Parsing problem with misnested tags

From: Simon Pieters <simonp@opera.com>
Date: Wed, 12 Nov 2008 14:03:20 +0100
To: "Philip Taylor" <pjt47@cam.ac.uk>, "HTML WG" <public-html@w3.org>
Message-ID: <op.ukibvucxidj3kv@zcorpandell.linkoping.osa>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:24 GMT