@burger-editor/frozen-patty 4.0.0-alpha.55 → 4.0.0-alpha.57

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 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.55",
3
+ "version": "4.0.0-alpha.57",
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.55"
44
+ "@burger-editor/utils": "4.0.0-alpha.57"
45
45
  },
46
- "gitHead": "7dbeb2e6ea6b762aaad6d4c8f9ff1663d8575e95"
46
+ "gitHead": "bb64e11ec67ff9b3d28c99622fada9e96b151481"
47
47
  }