Skip to content

Commit

Permalink
cloneNode pass ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
samarsault committed Jan 16, 2023
1 parent 6df783f commit 005e286
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/dom/src/serialize-dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 005e286

Please sign in to comment.