@wizishop/wizi-block 4.2.34-beta → 4.2.35-beta

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.
@@ -20965,14 +20965,16 @@
20965
20965
  };
20966
20966
  InlineStyleTool.prototype.identicalAttributes = function (currentElement, nextElement) {
20967
20967
  var currentElementAttributes = currentElement.getAttributeNames();
20968
- currentElementAttributes.forEach(function (attribute) {
20969
- if (attribute !== 'style') {
20970
- if (!nextElement.getAttribute(attribute) ||
20971
- nextElement.getAttribute(attribute) !== currentElement.getAttribute(attribute)) {
20972
- return false;
20968
+ if (currentElementAttributes) {
20969
+ currentElementAttributes.forEach(function (attribute) {
20970
+ if (attribute !== 'style') {
20971
+ if (!nextElement.getAttribute(attribute) ||
20972
+ nextElement.getAttribute(attribute) !== currentElement.getAttribute(attribute)) {
20973
+ return false;
20974
+ }
20973
20975
  }
20974
- }
20975
- });
20976
+ });
20977
+ }
20976
20978
  return true;
20977
20979
  };
20978
20980
  InlineStyleTool.prototype.identicalInlineStyle = function (currentElement, nextElement) {