@posthog/rrweb-player 0.0.23 → 0.0.25

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.
@@ -4756,6 +4756,12 @@ function buildNodeWithSN(n2, options) {
4756
4756
  } else {
4757
4757
  node2.appendChild(childNode);
4758
4758
  }
4759
+ } else if (n2.type === NodeType$1$1.Document && childN.type === NodeType$1$1.DocumentType) {
4760
+ if (node2.firstChild && node2.firstChild.nodeType === 1) {
4761
+ node2.insertBefore(childNode, node2.firstChild);
4762
+ } else {
4763
+ node2.appendChild(childNode);
4764
+ }
4759
4765
  } else {
4760
4766
  node2.appendChild(childNode);
4761
4767
  }
@@ -13219,12 +13225,13 @@ class Replayer {
13219
13225
  }
13220
13226
  }
13221
13227
  applyStyleDeclaration(data, styleSheet) {
13228
+ var _a2, _b2;
13222
13229
  if (data.set) {
13223
13230
  const rule2 = getNestedRule(
13224
13231
  styleSheet.rules,
13225
13232
  data.index
13226
13233
  );
13227
- rule2.style.setProperty(
13234
+ (_a2 = rule2 == null ? void 0 : rule2.style) == null ? void 0 : _a2.setProperty(
13228
13235
  data.set.property,
13229
13236
  data.set.value,
13230
13237
  data.set.priority
@@ -13235,7 +13242,7 @@ class Replayer {
13235
13242
  styleSheet.rules,
13236
13243
  data.index
13237
13244
  );
13238
- rule2.style.removeProperty(data.remove.property);
13245
+ (_b2 = rule2 == null ? void 0 : rule2.style) == null ? void 0 : _b2.removeProperty(data.remove.property);
13239
13246
  }
13240
13247
  }
13241
13248
  applyAdoptedStyleSheet(data) {