html-validate 10.12.0 → 10.12.1

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/esm/core.js CHANGED
@@ -1155,6 +1155,13 @@ const dynamicKeys = [
1155
1155
  "submitButton"
1156
1156
  ];
1157
1157
  const schemaCache = /* @__PURE__ */ new Map();
1158
+ function clone(value) {
1159
+ if (globalThis.structuredClone) {
1160
+ return globalThis.structuredClone(value);
1161
+ } else {
1162
+ return JSON.parse(JSON.stringify(value));
1163
+ }
1164
+ }
1158
1165
  function overwriteMerge$1(_a, b) {
1159
1166
  return b;
1160
1167
  }
@@ -1166,7 +1173,7 @@ class MetaTable {
1166
1173
  */
1167
1174
  constructor() {
1168
1175
  this.elements = {};
1169
- this.schema = structuredClone(schema);
1176
+ this.schema = clone(schema);
1170
1177
  }
1171
1178
  /**
1172
1179
  * @internal
@@ -12463,7 +12470,7 @@ class EventHandler {
12463
12470
  }
12464
12471
 
12465
12472
  const name = "html-validate";
12466
- const version = "10.12.0";
12473
+ const version = "10.12.1";
12467
12474
  const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
12468
12475
 
12469
12476
  function freeze(src) {