diff --git a/packages/dom/src/clone-dom.js b/packages/dom/src/clone-dom.js index d63679f54..938d54f21 100644 --- a/packages/dom/src/clone-dom.js +++ b/packages/dom/src/clone-dom.js @@ -54,7 +54,8 @@ export function cloneNodeAndShadow(ctx) { clone.shadowRoot.innerHTML = ''; } else { clone.attachShadow({ - mode: 'open' + mode: 'open', + serializable: true }); } // clone dom elements @@ -84,10 +85,20 @@ export function cloneNodeAndShadow(ctx) { * Use `getInnerHTML()` to serialize shadow dom as