fix: Iframe replay fails after the second full snapshot #983 (#984)

This commit is contained in:
luocongqiu
2026-04-01 12:00:00 +08:00
committed by GitHub
parent 60a9501293
commit 4df0282b65

View File

@@ -478,13 +478,11 @@ function serializeNode(
type: NodeType.Document, type: NodeType.Document,
childNodes: [], childNodes: [],
compatMode: (n as Document).compatMode, // probably "BackCompat" compatMode: (n as Document).compatMode, // probably "BackCompat"
rootId,
}; };
} else { } else {
return { return {
type: NodeType.Document, type: NodeType.Document,
childNodes: [], childNodes: [],
rootId,
}; };
} }
case n.DOCUMENT_TYPE_NODE: case n.DOCUMENT_TYPE_NODE: