<?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>11529</bug_id>
          
          <creation_ts>2010-12-10 16:11:46 +0000</creation_ts>
          <short_desc>inferred start tags</short_desc>
          <delta_ts>2011-08-04 05:07:39 +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>LC1 HTML/XHTML Compatibility Authoring Guide (ed: Eliot Graff)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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 name="David Carlisle">davidc</reporter>
          <assigned_to name="Eliot Graff">eliotgra</assigned_to>
          <cc>eliotgra</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>43255</commentid>
    <comment_count>0</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2010-12-10 16:11:46 +0000</bug_when>
    <thetext>The document has special rules for tbody and colgroup, but similar rules need to be stated for every element for which the html parser allows an inferred start tag.

I haven&apos;t checked html5 for the full list of these, but two particularly common examples are &lt;head&gt; and &lt;body&gt;

&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;title&gt;zzz&lt;/title&gt;
&lt;p&gt;zzz&lt;/p&gt;
&lt;/html&gt;


is a valid html5 document that is well formed as XML, but the HTML parser produces

&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;&lt;head&gt;
&lt;title&gt;zzz&lt;/title&gt;&lt;/head&gt;
&lt;body&gt;&lt;p&gt;zzz&lt;/p&gt;
&lt;/body&gt;&lt;/html&gt;


with head and title being added automatically</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43265</commentid>
    <comment_count>1</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2010-12-10 18:28:19 +0000</bug_when>
    <thetext>(In reply to comment #0)

&gt; I haven&apos;t checked html5 for the full list of these, but two particularly common
&gt; examples are &lt;head&gt; and &lt;body&gt;

I think that &lt;html&gt; is the only other one if my reading of html5 is correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43648</commentid>
    <comment_count>2</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2010-12-29 19:44:05 +0000</bug_when>
    <thetext>Section 6.1 now begins:

Every polyglot markup document contains an &lt;html&gt;, &lt;head&gt;, &lt;title&gt;, and &lt;body&gt; element. The &lt;html&gt; element is the root element. The &lt;head&gt; and &lt;body&gt; elements are children of the &lt;html&gt; element. The &lt;title&gt; element is a child of the &lt;head&gt; element. Therefore, the following source code would be the most basic polyglot markup document. 

Example

&lt;!DOCTYPE html&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;en&quot; xml:lang=&quot;en&quot;&gt;
  &lt;head&gt;
    &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;/body&gt;
&lt;/html&gt;

Thanks for the feedback.

Eliot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53171</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:07:18 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53206</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:07:39 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>