@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.system.js
CHANGED
|
@@ -1065,7 +1065,7 @@ System.register('DOMUtils', [], (function (exports) {
|
|
|
1065
1065
|
super(option);
|
|
1066
1066
|
}
|
|
1067
1067
|
/** 版本号 */
|
|
1068
|
-
version = "2025.
|
|
1068
|
+
version = "2025.5.12";
|
|
1069
1069
|
attr(element, attrName, attrValue) {
|
|
1070
1070
|
let DOMUtilsContext = this;
|
|
1071
1071
|
if (typeof element === "string") {
|
|
@@ -1209,7 +1209,8 @@ System.register('DOMUtils', [], (function (exports) {
|
|
|
1209
1209
|
return;
|
|
1210
1210
|
}
|
|
1211
1211
|
let setStyleProperty = (propertyName, propertyValue) => {
|
|
1212
|
-
if (propertyValue === "string" &&
|
|
1212
|
+
if (typeof propertyValue === "string" &&
|
|
1213
|
+
propertyValue.trim().endsWith("!important")) {
|
|
1213
1214
|
propertyValue = propertyValue
|
|
1214
1215
|
.trim()
|
|
1215
1216
|
.replace(/!important$/gi, "")
|