nexa-runtime 0.7.7 → 0.7.9
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/vdom/dom.js +6 -0
- package/package.json +2 -2
package/dist/vdom/dom.js
CHANGED
|
@@ -106,6 +106,9 @@ export const domOptions = {
|
|
|
106
106
|
else if (key === 'htmlFor') {
|
|
107
107
|
el.setAttribute('for', String(nextValue));
|
|
108
108
|
}
|
|
109
|
+
else if (key === 'innerHTML') {
|
|
110
|
+
el.innerHTML = nextValue ?? '';
|
|
111
|
+
}
|
|
109
112
|
else if (typeof nextValue === 'boolean') {
|
|
110
113
|
if (nextValue)
|
|
111
114
|
el.setAttribute(key, '');
|
|
@@ -116,6 +119,9 @@ export const domOptions = {
|
|
|
116
119
|
if (nextValue == null) {
|
|
117
120
|
el.removeAttribute(key);
|
|
118
121
|
}
|
|
122
|
+
else if (typeof el.tagName === 'string' && el.tagName.includes('-') && typeof nextValue === 'object') {
|
|
123
|
+
el[key] = nextValue;
|
|
124
|
+
}
|
|
119
125
|
else {
|
|
120
126
|
el.setAttribute(key, String(nextValue));
|
|
121
127
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nexa-runtime",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"nexa-reactivity": "0.7.
|
|
16
|
+
"nexa-reactivity": "0.7.9"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"dist"
|