@posthog/rrweb 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.js CHANGED
@@ -5543,6 +5543,9 @@ function buildNode(n2, options) {
5543
5543
  n2.isStyle && hackCss ? adaptCssForReplay(n2.textContent, cache) : n2.textContent
5544
5544
  );
5545
5545
  case NodeType$1$1.CDATA:
5546
+ if (n2.textContent.trim() === "") {
5547
+ return null;
5548
+ }
5546
5549
  return doc.createCDATASection(n2.textContent);
5547
5550
  case NodeType$1$1.Comment:
5548
5551
  return doc.createComment(n2.textContent);