<?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>18608</bug_id>
          
          <creation_ts>2012-08-17 21:03:46 +0000</creation_ts>
          <short_desc>[Templates] Specify that all template elements within a document have DF&apos;s that are owned by a shared browsing-context-less document</short_desc>
          <delta_ts>2012-10-03 22:16:51 +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>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>72376</commentid>
    <comment_count>0</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2012-08-17 21:03:46 +0000</bug_when>
    <thetext>The following:

&quot;Prior to first access, the content property must be initialized in a way that is equivalent to processing these steps:

Input
TEMPLATE, the template
Output
CONTENTS, the template contents
Let DOCUMENT be a new Document node that does not have a browsing context
Mark DOCUMENT as an HTML document
Let CONTENTS be a new DocumentFragment object whose node document is DOCUMENT&quot;

Implies 

template.contents.ownerDocument !== template2.contents.ownerDocument

for any two distinct template elements.

This seems needlessly expensive. I propose something equivalent to:

-Event document which *has a browsing context* owns another (lazily created) &quot;inert document&quot; which lacks a browsing context. When a template element creates it&apos;s content document fragment it assigns it&apos;s node (owner) document as follows:

If template.ownerDocument has a browsing context, use that document&apos;s &quot;inert document&quot;
else use the template.ownerDocument.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75266</commentid>
    <comment_count>1</comment_count>
    <who name="Rafael Weinstein">rafaelw</who>
    <bug_when>2012-10-03 22:16:51 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/webcomponents/rev/91b77f44e7d8
http://dvcs.w3.org/hg/webcomponents/rev/81699c885d62</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>