This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23308 - [Custom]: Don't queue callbacks for an element that does not have that specific callback
Summary: [Custom]: Don't queue callbacks for an element that does not have that specif...
Status: RESOLVED INVALID
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14968
  Show dependency treegraph
 
Reported: 2013-09-20 18:07 UTC by Dominic Cooney
Modified: 2013-10-04 20:26 UTC (History)
0 users

See Also:


Attachments

Description Dominic Cooney 2013-09-20 18:07:11 UTC
If a Custom Element doesn'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'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.
Comment 1 Dimitri Glazkov 2013-10-04 20:26:22 UTC
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.