|
@@ -1991,7 +1991,7 @@ pre code {
|
|
|
serializeShadowRoots(shadowRoot);
|
|
serializeShadowRoots(shadowRoot);
|
|
|
const templateElement = document.createElement("template");
|
|
const templateElement = document.createElement("template");
|
|
|
templateElement.setAttribute(SHADOWROOT_ATTRIBUTE_NAME, "open");
|
|
templateElement.setAttribute(SHADOWROOT_ATTRIBUTE_NAME, "open");
|
|
|
- templateElement.appendChild(shadowRoot);
|
|
|
|
|
|
|
+ Array.from(shadowRoot.childNodes).forEach(childNode => templateElement.appendChild(childNode));
|
|
|
element.appendChild(templateElement);
|
|
element.appendChild(templateElement);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|