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