W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2015

ES6 and upgrading custom elements

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 6 Jan 2015 16:21:51 +0100
Message-ID: <CADnb78g2+8TJ9c6j8haUQd6h_mvjvXBJKr+camKMKVPH6_OA2g@mail.gmail.com>
To: WebApps WG <public-webapps@w3.org>
It's not clear to me from
https://w3c.github.io/webcomponents/spec/custom/#es6 how the upgrade
works. From the pre-ES6 setup you can work out through inference that
upgrading is supposed to mutate the prototype of the element in

But it seems that mutating the prototype is not sufficient for ES6. We
want an element created through the constructor, no? (Let's leave
aside the question for now as to how this subclassing would work,
that's already discussed elsewhere.)

Received on Tuesday, 6 January 2015 15:22:18 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:25 UTC