<?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>17113</bug_id>
          
          <creation_ts>2012-05-18 21:26:02 +0000</creation_ts>
          <short_desc>[Custom]: What happens when you remove or change contents of &lt;element&gt;?</short_desc>
          <delta_ts>2013-05-17 22:45:45 +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>18719</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitri Glazkov">dglazkov</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>dominicc</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67911</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-05-18 21:26:02 +0000</bug_when>
    <thetext>Does it affect the new elements, created from this definition?

Must not affect existing ones.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67998</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-05-22 06:48:03 +0000</bug_when>
    <thetext>I think we should follow &lt;script&gt; here. Like a &lt;script&gt; tag, once the element has been processed, subsequent changes should not have any effect; removing and reinserting it into the document should not have any effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68061</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-05-23 17:01:13 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I think we should follow &lt;script&gt; here. Like a &lt;script&gt; tag, once the element
&gt; has been processed, subsequent changes should not have any effect; removing and
&gt; reinserting it into the document should not have any effect.

I disagree. Script is not being actively reused. It runs and then it&apos;s done. When you stamp out a new element, you effectively reuse the template and the attributes on the HTMLElementElement. I think it&apos;s more similar to &lt;style&gt; than to &lt;script&gt; in this respect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68233</commentid>
    <comment_count>3</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-05-29 01:26:18 +0000</bug_when>
    <thetext>I guess I’m concerned with what the constructor attribute does when changed – does it remove the binding for the old constructor and create a new one? Just create a new one?

I expect the behavior you choose for that one will differ from the rest of the element (eg template, etc.) So the &quot;one and done&quot; model is consistent, at least.

It does feel very webby-JavaScripty to have changes reflected live though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79983</commentid>
    <comment_count>4</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-12-12 00:02:32 +0000</bug_when>
    <thetext>If you add a new &lt;script&gt; to &lt;element&gt;, it runs immediately, as specified. This won&apos;t hurt anything, and actually could be useful if author decides to have incremental/partial initialization of component (aspects/mixins ftw?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87833</commentid>
    <comment_count>5</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-05-17 22:45:45 +0000</bug_when>
    <thetext>&lt;element&gt; will be one-shot.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>