<?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>16153</bug_id>
          
          <creation_ts>2012-02-28 20:27:03 +0000</creation_ts>
          <short_desc>[Templates]: Enable generated template elements to share a content docFrag</short_desc>
          <delta_ts>2015-08-04 09:26:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NEEDSINFO</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rafael Weinstein">rafaelw</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>hayato</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>64696</commentid>
    <comment_count>0</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2012-02-28 20:27:03 +0000</bug_when>
    <thetext>Clever templating use cases can optimize memory usage by sharing template content.

e.g.

&lt;template iterate=&quot;foo&quot;&gt;
  &lt;span&gt;{{ Person }}&lt;/span&gt;
  &lt;template iterate=&quot;stuffInPocket&quot;&gt;
     &lt;span&gt;{{ whatsInPocket }}&lt;/span&gt;
  &lt;/template&gt;
&lt;/template&gt;

---

The templating library is likely to stamp out multiple copies of 

  &lt;span&gt;{{ Person }}&lt;/span&gt;
  &lt;template iterate=&quot;stuffInPocket&quot;&gt;
     &lt;span&gt;{{ whatsInPocket }}&lt;/span&gt;
  &lt;/template&gt;

maybe there&apos;s some way that each instance doesn&apos;t have to have a generated &lt;template&gt; element that contains exactly the same 
  
  &lt;span&gt;{{ whatsInPocket }}&lt;/span&gt;

content docFrag

---

we could make content read-write, but then badness might occur if the content is assigned a docFrag owned by the outer document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121619</commentid>
    <comment_count>1</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-07-06 07:18:17 +0000</bug_when>
    <thetext>Changing the category:
  From: WebAppsWG =&gt; Components Model
  To: WHATWG =&gt; HTML</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122440</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-04 09:26:30 +0000</bug_when>
    <thetext>Seems this is old feedback about the original design, not against the current specification.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>