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/cjs/core.js
CHANGED
|
@@ -737,6 +737,9 @@ const definitions = {
|
|
|
737
737
|
},
|
|
738
738
|
{
|
|
739
739
|
$ref: "#/definitions/expression"
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
"function": true
|
|
740
743
|
}
|
|
741
744
|
]
|
|
742
745
|
},
|
|
@@ -1375,7 +1378,12 @@ class MetaTable {
|
|
|
1375
1378
|
function expandProperties(node, entry) {
|
|
1376
1379
|
for (const key of dynamicKeys) {
|
|
1377
1380
|
const property = entry[key];
|
|
1378
|
-
if (property
|
|
1381
|
+
if (!property) {
|
|
1382
|
+
continue;
|
|
1383
|
+
}
|
|
1384
|
+
if (typeof property === "function") {
|
|
1385
|
+
setMetaProperty(entry, key, property(node._adapter));
|
|
1386
|
+
} else if (typeof property !== "boolean") {
|
|
1379
1387
|
setMetaProperty(entry, key, evaluateProperty(node, property));
|
|
1380
1388
|
}
|
|
1381
1389
|
}
|
|
@@ -11974,7 +11982,7 @@ class HtmlValidate {
|
|
|
11974
11982
|
}
|
|
11975
11983
|
|
|
11976
11984
|
const name = "html-validate";
|
|
11977
|
-
const version = "8.
|
|
11985
|
+
const version = "8.13.0";
|
|
11978
11986
|
const bugs = "https://gitlab.com/html-validate/html-validate/issues/new";
|
|
11979
11987
|
|
|
11980
11988
|
function definePlugin(plugin) {
|