@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.esm.js CHANGED
@@ -1060,7 +1060,7 @@ class DOMUtils extends DOMUtilsEvent {
1060
1060
  super(option);
1061
1061
  }
1062
1062
  /** 版本号 */
1063
- version = "2025.4.23";
1063
+ version = "2025.5.12";
1064
1064
  attr(element, attrName, attrValue) {
1065
1065
  let DOMUtilsContext = this;
1066
1066
  if (typeof element === "string") {
@@ -1204,7 +1204,8 @@ class DOMUtils extends DOMUtilsEvent {
1204
1204
  return;
1205
1205
  }
1206
1206
  let setStyleProperty = (propertyName, propertyValue) => {
1207
- if (propertyValue === "string" && propertyValue.includes("!important")) {
1207
+ if (typeof propertyValue === "string" &&
1208
+ propertyValue.trim().endsWith("!important")) {
1208
1209
  propertyValue = propertyValue
1209
1210
  .trim()
1210
1211
  .replace(/!important$/gi, "")