ES6 and upgrading custom elements

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
question.

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.)


-- 
https://annevankesteren.nl/

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