@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.
@@ -4788,6 +4788,12 @@ function buildNodeWithSN(n2, options) {
4788
4788
  } else {
4789
4789
  node2.appendChild(childNode);
4790
4790
  }
4791
+ } else if (n2.type === NodeType$1$1.Document && childN.type === NodeType$1$1.DocumentType) {
4792
+ if (node2.firstChild && node2.firstChild.nodeType === 1) {
4793
+ node2.insertBefore(childNode, node2.firstChild);
4794
+ } else {
4795
+ node2.appendChild(childNode);
4796
+ }
4791
4797
  } else {
4792
4798
  node2.appendChild(childNode);
4793
4799
  }
@@ -13248,12 +13254,13 @@ class Replayer {
13248
13254
  }
13249
13255
  }
13250
13256
  applyStyleDeclaration(data, styleSheet) {
13257
+ var _a2, _b2;
13251
13258
  if (data.set) {
13252
13259
  const rule2 = getNestedRule(
13253
13260
  styleSheet.rules,
13254
13261
  data.index
13255
13262
  );
13256
- rule2.style.setProperty(
13263
+ (_a2 = rule2 == null ? void 0 : rule2.style) == null ? void 0 : _a2.setProperty(
13257
13264
  data.set.property,
13258
13265
  data.set.value,
13259
13266
  data.set.priority
@@ -13264,7 +13271,7 @@ class Replayer {
13264
13271
  styleSheet.rules,
13265
13272
  data.index
13266
13273
  );
13267
- rule2.style.removeProperty(data.remove.property);
13274
+ (_b2 = rule2 == null ? void 0 : rule2.style) == null ? void 0 : _b2.removeProperty(data.remove.property);
13268
13275
  }
13269
13276
  }
13270
13277
  applyAdoptedStyleSheet(data) {