Index: sky/framework/sky-element.sky |
diff --git a/sky/framework/sky-element.sky b/sky/framework/sky-element.sky |
index 8b04f79a5048e9db4bf0f0b5abfcd32df0616953..2fdc62ad65dcf10e6f0301995ed6ca375e637f41 100644 |
--- a/sky/framework/sky-element.sky |
+++ b/sky/framework/sky-element.sky |
@@ -47,8 +47,8 @@ abstract class SkyElement extends Element { |
var registration = _registery[tagName]; |
if (registration.template != null) { |
ShadowRoot shadow = ensureShadowRoot(); |
- var tree = registration.template.content.cloneNode(deep:true); |
- shadow.appendChild(tree); |
+ Node content = registration.template.content; |
+ shadow.appendChild(document.importNode(content, deep: true)); |
shadowRootReady(); |
} |
} |