html-validate 7.4.0 → 7.4.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/cjs/core.js +3 -3
- package/dist/cjs/core.js.map +1 -1
- package/dist/es/core.js +3 -3
- package/dist/es/core.js.map +1 -1
- package/elements/html5.js +1 -1
- package/package.json +6 -6
package/dist/es/core.js
CHANGED
|
@@ -3163,7 +3163,7 @@ var TRANSFORMER_API;
|
|
|
3163
3163
|
/** @public */
|
|
3164
3164
|
const name = "html-validate";
|
|
3165
3165
|
/** @public */
|
|
3166
|
-
const version = "7.4.
|
|
3166
|
+
const version = "7.4.1";
|
|
3167
3167
|
/** @public */
|
|
3168
3168
|
const homepage = "https://html-validate.org";
|
|
3169
3169
|
/** @public */
|
|
@@ -6260,10 +6260,10 @@ class InputMissingLabel extends Rule {
|
|
|
6260
6260
|
if (isHTMLHidden(elem) || isAriaHidden(elem)) {
|
|
6261
6261
|
return;
|
|
6262
6262
|
}
|
|
6263
|
-
/* hidden, submit or button should not have label */
|
|
6263
|
+
/* hidden, submit, reset or button should not have label */
|
|
6264
6264
|
if (elem.is("input")) {
|
|
6265
6265
|
const type = (_a = elem.getAttributeValue("type")) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
6266
|
-
const ignored = ["hidden", "submit", "button"];
|
|
6266
|
+
const ignored = ["hidden", "submit", "reset", "button"];
|
|
6267
6267
|
if (type && ignored.includes(type)) {
|
|
6268
6268
|
return;
|
|
6269
6269
|
}
|