<?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>24866</bug_id>
          
          <creation_ts>2014-02-28 18:23:40 +0000</creation_ts>
          <short_desc>[Custom]: Consider adding inserted/removed callback</short_desc>
          <delta_ts>2015-07-06 08:06:11 +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>MOVED</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>14968</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dimitri Glazkov">dglazkov</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>annevk</cc>
    
    <cc>dominicc</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>sjmiles</cc>
    
    <cc>wchen</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101642</commentid>
    <comment_count>0</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2014-02-28 18:23:40 +0000</bug_when>
    <thetext>These will be mapped exactly to inserted/removed hooks in DOM core:

* http://dom.spec.whatwg.org/#node-is-inserted
* http://dom.spec.whatwg.org/#node-is-removed

Based on discussion in bug 24314, we could even deprecate attached/detached callback in their favor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101648</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Miles">sjmiles</who>
    <bug_when>2014-02-28 19:03:17 +0000</bug_when>
    <thetext>It&apos;s definitely appealing to expose DOM core with high fidelity, but we have some performance realities that concern me.

In particular, calling back into JS from the native side is known to expensive (at least on some platforms).

The currently spec&apos;d callback is only called when an element&apos;s subtree is attached or detached form the main document, which is a much lower frequency situation. 

This is less powerful, but it is perhaps a good tradeoff to avoid killing custom elements with expensive callbacks?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102447</commentid>
    <comment_count>2</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-03-17 12:18:02 +0000</bug_when>
    <thetext>Note that the callbacks in DOM need to be updated to take several arguments to provide context for what actually happened. I haven&apos;t attempted that rewrite yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121652</commentid>
    <comment_count>3</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-07-06 08:06:11 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/222</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>