@posthog/rrweb-snapshot 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rrweb-snapshot.cjs +3 -0
- package/dist/rrweb-snapshot.cjs.map +1 -1
- package/dist/rrweb-snapshot.js +3 -0
- package/dist/rrweb-snapshot.js.map +1 -1
- package/dist/rrweb-snapshot.umd.cjs +3 -0
- package/dist/rrweb-snapshot.umd.cjs.map +2 -2
- package/dist/rrweb-snapshot.umd.min.cjs +1 -1
- package/dist/rrweb-snapshot.umd.min.cjs.map +2 -2
- package/package.json +1 -1
package/dist/rrweb-snapshot.cjs
CHANGED
|
@@ -5562,6 +5562,9 @@ function buildNode(n, options) {
|
|
|
5562
5562
|
n.isStyle && hackCss ? adaptCssForReplay(n.textContent, cache) : n.textContent
|
|
5563
5563
|
);
|
|
5564
5564
|
case NodeType$1.CDATA:
|
|
5565
|
+
if (n.textContent.trim() === "") {
|
|
5566
|
+
return null;
|
|
5567
|
+
}
|
|
5565
5568
|
return doc.createCDATASection(n.textContent);
|
|
5566
5569
|
case NodeType$1.Comment:
|
|
5567
5570
|
return doc.createComment(n.textContent);
|