@whitesev/domutils 1.5.3 → 1.5.4

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.
@@ -1063,7 +1063,7 @@ var DOMUtils = (function () {
1063
1063
  super(option);
1064
1064
  }
1065
1065
  /** 版本号 */
1066
- version = "2025.4.23";
1066
+ version = "2025.5.12";
1067
1067
  attr(element, attrName, attrValue) {
1068
1068
  let DOMUtilsContext = this;
1069
1069
  if (typeof element === "string") {
@@ -1207,7 +1207,8 @@ var DOMUtils = (function () {
1207
1207
  return;
1208
1208
  }
1209
1209
  let setStyleProperty = (propertyName, propertyValue) => {
1210
- if (propertyValue === "string" && propertyValue.includes("!important")) {
1210
+ if (typeof propertyValue === "string" &&
1211
+ propertyValue.trim().endsWith("!important")) {
1211
1212
  propertyValue = propertyValue
1212
1213
  .trim()
1213
1214
  .replace(/!important$/gi, "")