W3C home > Mailing lists > Public > public-html@w3.org > September 2012

[Bug 18823] New: html parsing algorithm possible bug wrt <p> & <div>

From: <bugzilla@jessica.w3.org>
Date: Mon, 10 Sep 2012 08:15:37 +0000
To: public-html@w3.org
Message-ID: <bug-18823-2495@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18823

           Summary: html parsing algorithm possible bug wrt <p> & <div>
           Product: HTML WG
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec
        AssignedTo: erika.doyle@microsoft.com
        ReportedBy: apavan.iitk@gmail.com
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
                    public-html@w3.org


<html>
 <head></head>
 <body>
  <p>
   <table>
    <form>
     <div>
     this is a test div
     </div>
    </form>
   </table>
  </p>
 </body>
</html>

when the above test case is parsed according to the spec
it becomes:

<html>
 <head></head>
 <body>
 <p>
  <div>
    this is a test div
  </div>

  <table>
  <form></form>
  </table>
 </p>

</body>
</html>

[in this <div> is inside <p>, while the spec explicitly states that <div>
elements will be moved out of <p>]

Thus the output of the parsing algorithm violates the spec!!

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Monday, 10 September 2012 08:15:38 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:34 UTC