@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.
package/dist/index.umd.js CHANGED
@@ -1066,7 +1066,7 @@
1066
1066
  super(option);
1067
1067
  }
1068
1068
  /** 版本号 */
1069
- version = "2025.4.23";
1069
+ version = "2025.5.12";
1070
1070
  attr(element, attrName, attrValue) {
1071
1071
  let DOMUtilsContext = this;
1072
1072
  if (typeof element === "string") {
@@ -1210,7 +1210,8 @@
1210
1210
  return;
1211
1211
  }
1212
1212
  let setStyleProperty = (propertyName, propertyValue) => {
1213
- if (propertyValue === "string" && propertyValue.includes("!important")) {
1213
+ if (typeof propertyValue === "string" &&
1214
+ propertyValue.trim().endsWith("!important")) {
1214
1215
  propertyValue = propertyValue
1215
1216
  .trim()
1216
1217
  .replace(/!important$/gi, "")