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

Parsing problem with misnested tags

From: Philip Taylor <pjt47@cam.ac.uk>
Date: Tue, 11 Nov 2008 22:59:10 +0000
Message-ID: <491A0E3E.7080709@cam.ac.uk>
To: HTML WG <public-html@w3.org>

HTML5 (or at least html5lib and validator.nu) currently parses



   |     "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.

This significantly breaks 
http://blogs.sun.com/bblfish/entry/rest_apis_must_be_hypertext which 
currently says

   <p>... we have the following JSON representation for a Person.</p>
   {  ... }
   <p>Note that ...</p>

since it results in the last paragraph having a monospace font when it 

Philip Taylor
Received on Tuesday, 11 November 2008 23:00:00 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:39 UTC