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

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 the QA contact for the bug.

Received on Monday, 10 September 2012 08:15:41 UTC