Re: [w3c/webcomponents] [Custom]: Callback for cloneNode/importNode (bugzilla: 24570) (#176)

> It would be a shame to break transmitting state when cloning in a new document if you could, in fact, register some definition in the new document. INPUT can do this; why can't the author do this?

Well, `<input>` is "pre-registered with the same definition" in all documents. But the idea of doing registration in the other document during the cloning callback is very interesting. A bit uncool to modify global state like that, but it might be just what you want in some cases.

> What do you think about taking the definition from the source node and transmitting it to the new node? That simplifies things a bunch; if you had a definition before, the new node has the same definition.

This is also a very interesting idea. I like it, on the surface; still working through the implications.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/176#issuecomment-248981622

Received on Thursday, 22 September 2016 18:08:08 UTC