- From: Domenic Denicola <notifications@github.com>
- Date: Wed, 16 Mar 2016 07:01:44 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Wednesday, 16 March 2016 14:02:17 UTC
Just to clarify. Given these two cases: ```js const el = document.createElement("div"); el.attachShadow(); const clone = el.cloneNode(true); ``` and ```js document.customElements.define("x-tag", class extends HTMLElement { constructor() { super(); this.attachShadow(); } }); const el = document.createElement("x-tag"); const clone = el.cloneNode(true); ``` the first will have no shadow root in `clone`, but the second will. And you think that is OK and expected? I guess I can't think of any better alternative. It seems a bit weird that cloning a tree does not clone the entire tree. And it seems to break the desire to orthogonalize custom elements and shadow DOM. But oh well. --- 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/419#issuecomment-197344564
Received on Wednesday, 16 March 2016 14:02:17 UTC