<?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>23308</bug_id>
          
          <creation_ts>2013-09-20 18:07:11 +0000</creation_ts>
          <short_desc>[Custom]: Don&apos;t queue callbacks for an element that does not have that specific callback</short_desc>
          <delta_ts>2013-10-04 20:26:22 +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>INVALID</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="Dominic Cooney">dominicc</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93605</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2013-09-20 18:07:11 +0000</bug_when>
    <thetext>If a Custom Element doesn&apos;t have a specific callback (eg leftView) that element should not be scheduled under the relevant condition (eg removed from document). This is for two reasons:

1. If we add callbacks in future, we don&apos;t want to change the order existing code sees existing callbacks.

2. It is faster to not put an element on the processing stack, etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94329</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-10-04 20:26:22 +0000</bug_when>
    <thetext>This is already in place. In https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#dfn-enqueue-lifecycle-callback:

* Let CALLBACK be the callback, associated with the key NAME in CALLBACKS
* If there is no such callback, stop.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>