@posthog/rrweb-snapshot 0.0.13 → 0.0.18

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.
@@ -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);