W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2015

Custom Elements: "createdCallback" & cloning

From: Anne van Kesteren <annevk@annevk.nl>
Date: Thu, 2 Jul 2015 09:05:47 +0200
Message-ID: <CADnb78gFqTp5m__LazNFBYRMLmchL5J2EWu29_xx5dvqYW8ZTg@mail.gmail.com>
To: WebApps WG <public-webapps@w3.org>
In the interest of moving forward I tried to more seriously consider
Dmitry's approach. Based on es-discussion discussion
it seems likely new JavaScript features (such as private state) will
be tied to object creation. This makes the prototype-swizzling design
even less appealing, in my opinion.

Meanwhile, I have not made much progress on the cloning question. As
Domenic pointed out, that would also either require
prototype-swizzling or invoking the constructor, there's not really a
third way. I guess for that to work cloneNode() and various editing
operations would have to become resilient against JavaScript executing
in the middle of them, something that has caused (is causing?) us a
ton of headaches with mutation events. (Or the alternative, have some
kind of mode switch for the DOM which is similarly a large

Not sure what to do now :-/

Received on Thursday, 2 July 2015 07:06:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:57 UTC