<?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>16787</bug_id>
          
          <creation_ts>2012-04-18 18:09:54 +0000</creation_ts>
          <short_desc>[Templates]: Specify that XML parsing doesn&apos;t do anything special with &lt;template&gt;</short_desc>
          <delta_ts>2012-10-04 00:04:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</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>
          
          <blocked>15476</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Rafael Weinstein">rafaelw</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>naesten</cc>
    
    <cc>rafaelw</cc>
    
    <cc>tross</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>66810</commentid>
    <comment_count>0</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2012-04-18 18:09:54 +0000</bug_when>
    <thetext>The spec should make clear that it is a non-goal to create an inert mechanism for XML documents, and that the behavior of parsing template children by the XML parser is exactly as if the template element had been created via createElement and children appended to it (i.e. nothing special).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72310</commentid>
    <comment_count>1</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2012-08-16 18:39:44 +0000</bug_when>
    <thetext>I&apos;m actually not sure it makes sense to mention XML or not. Thoughts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74449</commentid>
    <comment_count>2</comment_count>
    <who name="Samuel Bronson">naesten</who>
    <bug_when>2012-09-25 16:45:11 +0000</bug_when>
    <thetext>If &lt;template&gt; is going to be treated as just another element in the XHTML syntax, it *would* probably be a good idea to state that directly in &lt;http://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html#definitions&gt;; rather than relying on the reader getting that out of:

  &quot;The template contents must be declared using the HTML syntax in an HTML document.&quot;

Incidentally, why is that a non-goal?  (Is there an ML thread about it?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75277</commentid>
    <comment_count>3</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2012-10-04 00:03:32 +0000</bug_when>
    <thetext>@Samuel, in XHTML, the template element will behave the same placed in the DOM, however, the difference is that XML parser allows for no element-specific parsing behavior, thus the XML parser is incapable of directing tokens to the |content| of the template.

Thus, the following:

&lt;template&gt;&lt;div&gt;&lt;/div&gt;&lt;/template&gt;

when served in XHTML will produce a template with a div firstChild, where as HTML will produce a template with no children and a |content| DocumentFragment with a div as its firstChild.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75278</commentid>
    <comment_count>4</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2012-10-04 00:04:53 +0000</bug_when>
    <thetext>The spec is clear that the parser changes apply only to HTML. Upon reflection, it seems obvious that the XML parser isn&apos;t changed because it is never mentioned.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>