@burger-editor/frozen-patty 4.0.0-alpha.56 → 4.0.0-alpha.58
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/set-value.js +5 -0
- package/package.json +3 -3
package/dist/set-value.js
CHANGED
|
@@ -121,6 +121,11 @@ function set(el, prefix, name, datum, xssSanitize = true) {
|
|
|
121
121
|
el.removeAttribute(name);
|
|
122
122
|
return;
|
|
123
123
|
}
|
|
124
|
+
// Custom elements
|
|
125
|
+
if (el.localName.includes('-')) {
|
|
126
|
+
el.setAttribute(name, `${datum}`);
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
124
129
|
if (!name.startsWith('data-') && !propInElement(el, name)) {
|
|
125
130
|
const dataAttr = `data-${prefix}-${kebabCase(name)}`;
|
|
126
131
|
if (el.hasAttribute(dataAttr)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burger-editor/frozen-patty",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.58",
|
|
4
4
|
"description": "Pure HTML to JSON converter that does not use a template engine.",
|
|
5
5
|
"author": "D-ZERO",
|
|
6
6
|
"license": "(MIT OR Apache-2.0)",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"clean": "tsc --build --clean"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@burger-editor/utils": "4.0.0-alpha.
|
|
44
|
+
"@burger-editor/utils": "4.0.0-alpha.58"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "b7c9774d8d23cbc7a65cdb47f170218bf5143fe7"
|
|
47
47
|
}
|