@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.amd.js +3 -2
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +3 -2
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +3 -2
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/DOMUtils.ts +5 -2
package/dist/index.iife.js
CHANGED
|
@@ -1063,7 +1063,7 @@ var DOMUtils = (function () {
|
|
|
1063
1063
|
super(option);
|
|
1064
1064
|
}
|
|
1065
1065
|
/** 版本号 */
|
|
1066
|
-
version = "2025.
|
|
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" &&
|
|
1210
|
+
if (typeof propertyValue === "string" &&
|
|
1211
|
+
propertyValue.trim().endsWith("!important")) {
|
|
1211
1212
|
propertyValue = propertyValue
|
|
1212
1213
|
.trim()
|
|
1213
1214
|
.replace(/!important$/gi, "")
|