<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>18823</bug_id>
          
          <creation_ts>2012-09-10 08:15:37 +0000</creation_ts>
          <short_desc>html parsing algorithm possible bug wrt &lt;p&gt; &amp; &lt;div&gt;</short_desc>
          <delta_ts>2012-09-10 16:53:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>apavan.iitk</reporter>
          <assigned_to name="Edward O&apos;Connor">eoconnor</assigned_to>
          <cc>eoconnor</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73518</commentid>
    <comment_count>0</comment_count>
    <who name="">apavan.iitk</who>
    <bug_when>2012-09-10 08:15:37 +0000</bug_when>
    <thetext>&lt;html&gt;
 &lt;head&gt;&lt;/head&gt;
 &lt;body&gt;
  &lt;p&gt;
   &lt;table&gt;
    &lt;form&gt;
     &lt;div&gt;
     this is a test div
     &lt;/div&gt;
    &lt;/form&gt;
   &lt;/table&gt;
  &lt;/p&gt;
 &lt;/body&gt;
&lt;/html&gt;

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

&lt;html&gt;
 &lt;head&gt;&lt;/head&gt;
 &lt;body&gt;
 &lt;p&gt;
  &lt;div&gt;
    this is a test div
  &lt;/div&gt;

  &lt;table&gt;
  &lt;form&gt;&lt;/form&gt;
  &lt;/table&gt;
 &lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;

[in this &lt;div&gt; is inside &lt;p&gt;, while the spec explicitly states that &lt;div&gt; elements will be moved out of &lt;p&gt;]

Thus the output of the parsing algorithm violates the spec!!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73555</commentid>
    <comment_count>1</comment_count>
    <who name="Edward O&apos;Connor">eoconnor</who>
    <bug_when>2012-09-10 16:53:33 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:

   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: No change.
Rationale: This aspect of the parsing algorithm is due to legacy
compatibility constraints, and thus can&apos;t be changed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>