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 28541 - Custom elements should use ES6 class constructor
Summary: Custom elements should use ES6 class constructor
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:
 
Reported: 2015-04-22 23:25 UTC by Ryosuke Niwa
Modified: 2015-07-06 08:05 UTC (History)
2 users (show)

See Also:


Attachments

Description Ryosuke Niwa 2015-04-22 23:25:19 UTC
As discussed, docuemnt.regsiterElement currently replaces the constructor so that it rips out any static methods defined using the ES6 class syntax.  We shouldn't do that.

We should preserve the original constructor/class object defiend by the author.
Comment 1 Hayato Ito 2015-07-06 08:05:18 UTC
Moved to https://github.com/w3c/webcomponents/issues/139