Document::importedNode doesn’t import new-style shadows. This means that as nodes are imported, they lose their shadows.
s/importedNode/importNode/
Created attachment 90478 [details] Patch
Comment on attachment 90478 [details] Patch Looks good
BTW, what about Node::cloneNode()?
(In reply to comment #4) > BTW, what about Node::cloneNode()? Both importNode() and cloneNode() call copyNonAttributeProperties for nodes they clone, so both are handled by this patch. But note that a direct call to cloneNode() and importNode() is currently forbidden. It the end it depends on the JS API we will have for shadowRoot, I think. If you can assign directly to element.shadowRoot, e.g., myBoundElement.shadowRoot = myOtherBoundElement.shadowRoot.cloneNode() then we will need to allow a direct call to cloneNode and importNode on a ShadowRoot.
Comment on attachment 90478 [details] Patch Clearing flags on attachment: 90478 Committed r84528: <http://trac.webkit.org/changeset/84528>
All reviewed patches have been landed. Closing bug.