@posthog/rrweb-snapshot 0.0.13 → 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.js
CHANGED
|
@@ -5560,6 +5560,9 @@ function buildNode(n, options) {
|
|
|
5560
5560
|
n.isStyle && hackCss ? adaptCssForReplay(n.textContent, cache) : n.textContent
|
|
5561
5561
|
);
|
|
5562
5562
|
case NodeType$1.CDATA:
|
|
5563
|
+
if (n.textContent.trim() === "") {
|
|
5564
|
+
return null;
|
|
5565
|
+
}
|
|
5563
5566
|
return doc.createCDATASection(n.textContent);
|
|
5564
5567
|
case NodeType$1.Comment:
|
|
5565
5568
|
return doc.createComment(n.textContent);
|