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 27977 - [Custom]: mixin pattern: custom elements should be able to extend any base tag with is=
Summary: [Custom]: mixin pattern: custom elements should be able to extend any base ta...
Status: RESOLVED MOVED
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: 2015-02-07 19:02 UTC by Randy Harmon
Modified: 2015-07-06 08:03 UTC (History)
2 users (show)

See Also:


Attachments

Description Randy Harmon 2015-02-07 19:02:20 UTC
As a creator of web components, I'd like to be able to have a component perform element-type-agnostic concerns, such that it could be mixed in to any specific tag, thus specializing the prototype for that tag instance.  

This would affect the attachedCallback, where the component author would need to be given a tag-instance prototype, ideally already prepared for doing mixins on, and might indicate some fine-tuning of element registration, to support the late assignment of prototype to tag instance.  I imagine non-mixin custom tags would have a largely unchanged lifecycle, not least for API compatibility.

Ideally, multiple is= values would allow multiple mixins, each overlaying the prototype chain defined by the attachedCallback from the prior mixin.
Comment 1 Hayato Ito 2015-07-06 08:03:59 UTC
Moved to https://github.com/w3c/webcomponents/issues/153