html-validate 8.12.0 → 8.13.0
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/cjs/core.js +10 -2
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/elements.js +230 -2
- package/dist/cjs/elements.js.map +1 -1
- package/dist/cjs/tsdoc-metadata.json +1 -1
- package/dist/es/core.js +10 -2
- package/dist/es/core.js.map +1 -1
- package/dist/es/elements.js +230 -2
- package/dist/es/elements.js.map +1 -1
- package/dist/schema/elements.json +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/types/browser.d.ts +19 -7
- package/dist/types/index.d.ts +19 -7
- package/package.json +2 -2
package/dist/es/core.js
CHANGED
|
@@ -727,6 +727,9 @@ const definitions = {
|
|
|
727
727
|
},
|
|
728
728
|
{
|
|
729
729
|
$ref: "#/definitions/expression"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"function": true
|
|
730
733
|
}
|
|
731
734
|
]
|
|
732
735
|
},
|
|
@@ -1365,7 +1368,12 @@ class MetaTable {
|
|
|
1365
1368
|
function expandProperties(node, entry) {
|
|
1366
1369
|
for (const key of dynamicKeys) {
|
|
1367
1370
|
const property = entry[key];
|
|
1368
|
-
if (property
|
|
1371
|
+
if (!property) {
|
|
1372
|
+
continue;
|
|
1373
|
+
}
|
|
1374
|
+
if (typeof property === "function") {
|
|
1375
|
+
setMetaProperty(entry, key, property(node._adapter));
|
|
1376
|
+
} else if (typeof property !== "boolean") {
|
|
1369
1377
|
setMetaProperty(entry, key, evaluateProperty(node, property));
|
|
1370
1378
|
}
|
|
1371
1379
|
}
|
|
@@ -11964,7 +11972,7 @@ class HtmlValidate {
|
|
|
11964
11972
|
}
|
|
11965
11973
|
|
|
11966
11974
|
const name = "html-validate";
|
|
11967
|
-
const version = "8.
|
|
11975
|
+
const version = "8.13.0";
|
|
11968
11976
|
const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
|
|
11969
11977
|
|
|
11970
11978
|
function definePlugin(plugin) {
|