<?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>15653</bug_id>
          
          <creation_ts>2012-01-20 21:34:21 +0000</creation_ts>
          <short_desc>[Templates]: Specify &quot;liveness&quot; of the elements</short_desc>
          <delta_ts>2012-03-08 19:21:24 +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>
          <dependson>16155</dependson>
          <blocked>15663</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitri Glazkov">dglazkov</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>rafaelw</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>62955</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-01-20 21:34:21 +0000</bug_when>
    <thetext>Do elements fetch resources, run script, audio? Behavior side effects?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63068</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-01-24 18:30:06 +0000</bug_when>
    <thetext>I think this and bug 15657 can be resolved as part of the following premise:

When an element is in template contents, its properties are detached from the internal state of the element, and instead simply simulate the attribute accessors.

For example, &quot;liveness&quot; of an image only comes into play when you set its &quot;src&quot; property. If the property simply parrots setAttribute/getAttribute and doesn&apos;t change internal state of the element, the effect is that the image is never fetched.

Similarly, the tolerance of setting &quot;tabindex&quot; is not significant, since the property is not actually set, and is instead using setAttribute/getAttribute.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63073</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-01-24 21:13:37 +0000</bug_when>
    <thetext>We could do this by:

1) defining that template contents are parsed as a document fragment that was created from a document without a browser context (var df = document.implementation.createHTMLDocument(&apos;title&apos;).createDocumentFragment();)
2) modifying HTML spec to clarify what HTML elements with a ownerDocument that does not have a browser context should do.

At the moment, the interoperability story is pretty bad here, with Gecko/IE9/WebKit doing slightly different things, Gecko doing the thing that&apos;s the closest to desired behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>63074</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-01-24 21:15:02 +0000</bug_when>
    <thetext>That&apos;s browsing context, not &quot;browser context&quot;: http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#browsing-context</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64843</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-03-01 18:37:29 +0000</bug_when>
    <thetext>*** Bug 15657 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64846</commentid>
    <comment_count>5</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-03-01 18:53:08 +0000</bug_when>
    <thetext>Added the notion of &quot;inert&quot; in http://dvcs.w3.org/hg/webcomponents/rev/cb6f77f5a6bb.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65148</commentid>
    <comment_count>6</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-03-08 19:21:24 +0000</bug_when>
    <thetext>template contents initialization algorithm takes care of this: http://dvcs.w3.org/hg/webcomponents/rev/195ce90ed523</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>