<?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>12322</bug_id>
          
          <creation_ts>2011-03-17 01:25:37 +0000</creation_ts>
          <short_desc>[Polyglot] &quot;Required Elements&quot; - clarify use of &lt;colgroup&gt; and more.</short_desc>
          <delta_ts>2011-08-04 05:07:43 +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>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://dev.w3.org/html5/html-xhtml-author-guide/html-xhtml-authoring-guide.html#required-elements</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="Leif Halvard Silli">xn--mlform-iua</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>
    
    <cc>xn--mlform-iua</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>46767</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-03-17 01:25:37 +0000</bug_when>
    <thetext>The Polyglot Markup spec can easily be read to say that &lt;colgroup&gt; is obligatory in any table:

]] Polyglot markup explicitly uses a colgroup element surrounding groups of col elements within a table element. HTML parsers insert the colgroup element, but XML parsers do not, thus creating different DOMs. [[

At least, I did. I even created this Live DOM viewer test to show that it is not the case: http://tinyurl.com/colgroup

What you wanted to say was that &lt;colgroup&gt; is an obligatory wrapper aroun any &lt;col&gt;. The confusing wordings are &quot;uses&quot;, &quot;explicit&quot; and &quot;insert&quot;.  Perhaps the word &quot;code&quot; could been used somewhere? The wording should also imply clear that it can be more than one colgroup in the same table.

I suggest this:

]] In the code of polyglot markup, a col element always has to occur wrapped inside a colgroup element. In HTML, if in the code a group of one or more adjacent col elements are not explicitly wrapped inside a colgroup element, then the parser will create a new colgroup element and wrap around them. XML parsers will not do the same thing, thus creating different DOMs.[[

In the same go, place also fix the text about &lt;tbody&gt;. You should say that authors must use either tbody, thead or tfoot. I suggest this:

]] In the code of polyglot markup, a tr element always has to occur wrapped inside a tbody, thead or tfoot element. In HTML, if in the code a group of one or more adjacent tr elements are not explictly wrapped inside a tbody, thead or tfoot element, then the parser will create a new tbody element and wrap around them. XML parsers will not do the same thing, thus creating different DOMs.[[

Another thing: the minimal document example, you have this &lt;html&gt; start tag:

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

Please EITHER clarify that you mean a minimal ENGLISH document. OR replace lang=&quot;en&quot; xml:lang=&quot;en&quot; with empty attributes (which per HTML5 and XML means that no language has been set):

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;&quot; xml:lang=&quot;&quot;&gt;

(We discussed another place that ther should always be a lang/xml:lang attribute, so it is OK for me to include the lang/xml:lang attributes.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46827</commentid>
    <comment_count>1</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2011-03-18 22:57:22 +0000</bug_when>
    <thetext>This is a great catch!

I&apos;ve changed the paragraphs in Section 6.1 to the following:

]]
Whenever it uses a tr element, polyglot markup always wraps the tr element inside a tbody, thead, or tfoot element. In HTML, if a group of one or more adjacent tr elements are not explictly wrapped inside a tbody, thead, or tfoot element, the HTML parser creates and wraps a new tbody element around the tr elements. XML parsers do not crete the tbody element, thus offering the potential for creating different DOMs. 
[[

and 

]]
Whenever it uses col elements within a table element, polyglot markup explicitly uses a colgroup element surrounding groups of the col elements. In HTML, if a group of one or more adjacent col elements are not explicitly wrapped inside a colgroup element, the HTML parser creates and wraps a new colgroup element around the col elements. XML parsers do not create the colgroup element, thus offering the potential for creating different DOMs. 
[[

Thanks,

Eliot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46828</commentid>
    <comment_count>2</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-03-18 23:22:54 +0000</bug_when>
    <thetext>Perfect! Except that you wrote &quot;crete&quot; instead of &quot;create&quot; in first paragraph. So, I guess I must open this bug again, because otherwise you would of course never fix it. ;-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46829</commentid>
    <comment_count>3</comment_count>
    <who name="Eliot Graff">eliotgra</who>
    <bug_when>2011-03-18 23:27:22 +0000</bug_when>
    <thetext>Ah, you know my work habits! ;-)

Fixed. Thanks.

E</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46830</commentid>
    <comment_count>4</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-03-18 23:34:17 +0000</bug_when>
    <thetext>Super.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53184</commentid>
    <comment_count>5</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:07:24 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53212</commentid>
    <comment_count>6</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:07:43 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>