From 005e28659c3cbb975712d05442955f757efe2b68 Mon Sep 17 00:00:00 2001 From: Samarjeet Date: Mon, 16 Jan 2023 10:53:54 +0530 Subject: [PATCH] cloneNode pass ctx --- packages/dom/src/serialize-dom.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/dom/src/serialize-dom.js b/packages/dom/src/serialize-dom.js index 6326dcc75..0d65f513e 100644 --- a/packages/dom/src/serialize-dom.js +++ b/packages/dom/src/serialize-dom.js @@ -46,11 +46,12 @@ export function serializeDOM(options) { let ctx = { resources: new Set(), warnings: new Set(), - enableJavaScript + enableJavaScript, + disableShadowDom }; ctx.dom = dom; - ctx.clone = cloneNodeAndShadow(ctx.dom, disableShadowDom); + ctx.clone = cloneNodeAndShadow(ctx); serializeInputs(ctx); serializeFrames(ctx);