@highlight-run/rrweb 1.1.16 → 1.1.17

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/index.js CHANGED
@@ -6947,7 +6947,9 @@ function serializeNode(n, options) {
6947
6947
  var textContentHandled = false;
6948
6948
  if (isStyle && textContent) {
6949
6949
  try {
6950
- if ((_b = n.parentNode.sheet) === null || _b === void 0 ? void 0 : _b.cssRules) {
6950
+ if (n.nextSibling || n.previousSibling) {
6951
+ }
6952
+ else if ((_b = n.parentNode.sheet) === null || _b === void 0 ? void 0 : _b.cssRules) {
6951
6953
  textContent = stringifyStyleSheet(n.parentNode.sheet);
6952
6954
  }
6953
6955
  }