Skip to content

Commit 005e286

Browse files
committed
cloneNode pass ctx
1 parent 6df783f commit 005e286

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/dom/src/serialize-dom.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ export function serializeDOM(options) {
4646
let ctx = {
4747
resources: new Set(),
4848
warnings: new Set(),
49-
enableJavaScript
49+
enableJavaScript,
50+
disableShadowDom
5051
};
5152

5253
ctx.dom = dom;
53-
ctx.clone = cloneNodeAndShadow(ctx.dom, disableShadowDom);
54+
ctx.clone = cloneNodeAndShadow(ctx);
5455

5556
serializeInputs(ctx);
5657
serializeFrames(ctx);

0 commit comments

Comments
 (0)