@appsurify-testmap/rrweb-all 2.1.0-alpha.6 → 2.1.0-alpha.7

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-all.js CHANGED
@@ -11681,7 +11681,7 @@ class MutationBuffer {
11681
11681
  let value = m.target.getAttribute(attributeName);
11682
11682
  const propValue = target[attributeName];
11683
11683
  const isPhantomAttributeMutation = value === null && !target.hasAttribute(attributeName) && m.oldValue !== null && (propValue === "" || propValue === null || typeof propValue === "undefined");
11684
- if (isPhantomAttributeMutation && !isIncludeAttribute(attributeName, this.includeAttribute)) {
11684
+ if (isPhantomAttributeMutation) {
11685
11685
  return;
11686
11686
  }
11687
11687
  if (isExcludeAttribute(attributeName, this.excludeAttribute)) {
@@ -11729,12 +11729,8 @@ class MutationBuffer {
11729
11729
  toLowerCase(attributeName),
11730
11730
  value
11731
11731
  );
11732
- if (value === item.attributes[attributeName] && !isIncludeAttribute(attributeName, this.includeAttribute)) {
11733
- delete item.attributes[attributeName];
11734
- if (Object.keys(item.attributes).length === 0) {
11735
- this.attributes = this.attributes.filter((a2) => a2 !== item);
11736
- this.attributeMap.delete(m.target);
11737
- }
11732
+ if (value === item.attributes[attributeName]) {
11733
+ console.debug("[rrweb-record] A questionable mutation that needs to be investigated in the future.");
11738
11734
  return;
11739
11735
  }
11740
11736
  if (attributeName === "style") {