[w3c/webcomponents] importNode and cloneNode should upgrade cloned resolved custom elements (#584)

When a cloned custom element had already been well defined in the current global object, `importNode` and `cloneNode` should immediately upgrade the cloned elements.

Otherwise, we get into a bizarre situation like calling `cloneNode` on a synchronously constructed or upgraded custom element isn't another instance of the same custom element until it gets inserted into a document.  That is, `(new CustomElement).cloneNode() instanceof CustomElement` is `false`.  That's just silly.

I'm already [getting a bug report about this](https://bugs.webkit.org/show_bug.cgi?id=163147) in WebKit.

-- 
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/584

Received on Tuesday, 11 October 2016 07:51:51 UTC