Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Tags: html-validate/html-validate

Tags

v10.4.0

Toggle v10.4.0's commit message
chore(release): 10.4.0

## 10.4.0 (2025-11-17)

### Features

* **meta:** new metadata helper `hasKeyword` to test if a space-separated list contains a given keyword ([e1f0099](https://gitlab.com/html-validate/html-validate/commit/e1f0099b7a67c61fdc520f2b63a5fe289a69ce67))
* **meta:** support `attribute.required` as callback ([f0292a7](https://gitlab.com/html-validate/html-validate/commit/f0292a71106913cc8cea7bb2f66a3c7c76d0fbb1))

### Bug Fixes

* **html5:** `<link>` `imagesrcset` and `imagesizes` attributes are only allowed if `rel="preload"` and `as="image"` ([7b5ade4](https://gitlab.com/html-validate/html-validate/commit/7b5ade4cd85b10c915585d8229a4a0f82bf10d28))
* **html5:** `<link>` only requires `href` if `imagesrcset` is absent ([f0d2f6a](https://gitlab.com/html-validate/html-validate/commit/f0d2f6abdc82fbcd074a61e2bf5b17efc537e71c)), closes [#330](https://gitlab.com/html-validate/html-validate/issues/330)
* **html5:** `<link>` requires `imagesizes` if `imagesrcset` is present ([6fdc002](https://gitlab.com/html-validate/html-validate/commit/6fdc002340362d6c8f921ee01c120649bbd8cc00))

v10.3.1

Toggle v10.3.1's commit message
chore(release): 10.3.1

## 10.3.1 (2025-11-09)

### Bug Fixes

* **html5:** `<a>` element is only interactive if it has an `href` attribute ([385f92f](https://gitlab.com/html-validate/html-validate/commit/385f92fb3f01e8755c566adf1a6ed61923ca5899))
* **html5:** allow `<hr>` element to be used as descendant of `<select>` ([e601d36](https://gitlab.com/html-validate/html-validate/commit/e601d36776c150497f879ad11082bcb27719c7a2)), closes [#331](https://gitlab.com/html-validate/html-validate/issues/331)
* **html5:** disallow nested `<a>` elements even without `href` attribute ([622e2f6](https://gitlab.com/html-validate/html-validate/commit/622e2f66d1b055d2fbd98c7c0132c3fea708dac3))

v10.3.0

Toggle v10.3.0's commit message
chore(release): 10.3.0

## 10.3.0 (2025-11-02)

### Features

* **html5:** allow `<button>` as first child of `<select>` ([3de8a0f](https://gitlab.com/html-validate/html-validate/commit/3de8a0f4ddce303dacbb92b345382c90bafc213f)), closes [#321](https://gitlab.com/html-validate/html-validate/issues/321)
* **html5:** allow `<option>` to have child content ([6056325](https://gitlab.com/html-validate/html-validate/commit/6056325c4a7016b77256c3116b3ed2a457275538)), closes [#321](https://gitlab.com/html-validate/html-validate/issues/321)
* **html5:** support `<selectedcontent>` element ([d3d2c22](https://gitlab.com/html-validate/html-validate/commit/d3d2c2237f266747b956e5f21a50ddd5ed5a62ef)), closes [#321](https://gitlab.com/html-validate/html-validate/issues/321)
* **html5:** support `hidden="until-found"` ([baa033f](https://gitlab.com/html-validate/html-validate/commit/baa033fa1d0cea969f16ad2e30e9c6426b16752e)), closes [#322](https://gitlab.com/html-validate/html-validate/issues/322)
* **meta:** `permittedOrder` can take a selector list for elements with equal order requirement ([b3f92c2](https://gitlab.com/html-validate/html-validate/commit/b3f92c2d472a707c2cf45e7a1c252f67bb9a2608))
* parse `<title>` content as literal characters instead of HTML elements ([3399ab5](https://gitlab.com/html-validate/html-validate/commit/3399ab5c939216f329ce2b323ad7b580c5ebd00e)), closes [#326](https://gitlab.com/html-validate/html-validate/issues/326)

### Bug Fixes

* **html5:** allow `blocking` attribute on `<link rel="expect">` ([5bbabc4](https://gitlab.com/html-validate/html-validate/commit/5bbabc436f473bcee422c94f799a57c4c360509c)), closes [#327](https://gitlab.com/html-validate/html-validate/issues/327)
* **html5:** disallow `blocking` attribute on `<link rel="preload">` and `<link rel="modulepreload">` ([0a17e50](https://gitlab.com/html-validate/html-validate/commit/0a17e500a55f8334668419c34f7a84d40f5bf12c))
* **html5:** let `<selectedcontent>` fulfill the accessible text content requirement of `<button>` elements ([d1dff73](https://gitlab.com/html-validate/html-validate/commit/d1dff73346054a5c2815230ee6c3767fe8510a60)), closes [#321](https://gitlab.com/html-validate/html-validate/issues/321)
* **rules:** ignore omitted `type` attribute on `<button>` when used as first child of `<select>` ([1476960](https://gitlab.com/html-validate/html-validate/commit/1476960b0a7294f30dd239bc256c05f03b5c9a0d)), closes [#321](https://gitlab.com/html-validate/html-validate/issues/321)

v10.2.1

Toggle v10.2.1's commit message
chore(release): 10.2.1

## 10.2.1 (2025-10-24)

### Bug Fixes

* package republished only, no changes from v10.2.0 ([722c37f](https://gitlab.com/html-validate/html-validate/commit/722c37f3781d158596489bbe29affd64a6f127d5))

v10.2.0

Toggle v10.2.0's commit message
chore(release): 10.2.0

## 10.2.0 (2025-10-24)

### Features

* **deps:** support vitest v4 ([11936fc](https://gitlab.com/html-validate/html-validate/commit/11936fc0d4c91608e8035fcd62716c37b66d3685))
* **rules:** `aria-label-misuse` validates `aria-labelledby` in addition to `aria-label` ([ef27898](https://gitlab.com/html-validate/html-validate/commit/ef278982c85b784518e7e502a50fa40545b88b2a))
* **rules:** clearer `aria-label-misuse` error for elements where its strictly allowed but not recommended ([7b3a486](https://gitlab.com/html-validate/html-validate/commit/7b3a486716b4de1d63208ab2a69528b3da5b2641))

v10.1.2

Toggle v10.1.2's commit message
chore(release): 10.1.2

## 10.1.2 (2025-10-11)

### Bug Fixes

* **rules:** ignore disabled input fields in `form-dup-name` rule ([cf1962e](https://gitlab.com/html-validate/html-validate/commit/cf1962ea79701d1a6f6933ee23b443373023c544)), closes [#294](https://gitlab.com/html-validate/html-validate/issues/294)

v10.1.1

Toggle v10.1.1's commit message
chore(release): 10.1.1

## 10.1.1 (2025-10-06)

### Bug Fixes

* fix `unrecognized-char-ref` triggering [secure] positives for `<script>` and `<style>` tags ([efffc6b](https://gitlab.com/html-validate/html-validate/commit/efffc6bcd56e9be85314739833d3f661a87fb8cd))

v10.1.0

Toggle v10.1.0's commit message
chore(release): 10.1.0

## 10.1.0 (2025-10-03)

### Features

* parse `<textarea>` content as literal characters instead of HTML elements ([f3d4f5b](https://gitlab.com/html-validate/html-validate/commit/f3d4f5b178aab8e31e2e8680081ea3cdc8bfdf04)), closes [#314](https://gitlab.com/html-validate/html-validate/issues/314)
* store `<script>` and `<style>` content as text node ([740b94a](https://gitlab.com/html-validate/html-validate/commit/740b94a8c0d43d4b793ca8e94f0bb8acee07eb16)), closes [#316](https://gitlab.com/html-validate/html-validate/issues/316)

v10.0.0

Toggle v10.0.0's commit message
chore(release): 10.0.0

## 10.0.0 (2025-08-09)

### ⚠ BREAKING CHANGES

* **deps:** Support for Vitest v0 has been removed. Vitest v1 or later is
required.
* **deps:** Support for Jest v27 has been removed. Jest v28 or later is
required.
* **deps:** NodeJS v20 or later is now required.

### Features

* **deps:** remove support for jest v27 ([cb3160e](https://gitlab.com/html-validate/html-validate/commit/cb3160e93ff0e04bd8c48fb5d94d2fc56f26dc72))
* **deps:** remove support for vitest v0 ([3a75046](https://gitlab.com/html-validate/html-validate/commit/3a750464390db13c5e593f4f661c09291f6123c2))
* **deps:** require nodejs v20 or later ([f893e34](https://gitlab.com/html-validate/html-validate/commit/f893e34bc2f5903d579db929beea5cd2639ba1ee))
* **deps:** update dependency glob to v11 ([f52239d](https://gitlab.com/html-validate/html-validate/commit/f52239d5e73f77cf1ca925110d9ba9c4fbf6704d))

v9.7.1

Toggle v9.7.1's commit message
chore(release): 9.7.1

## 9.7.1 (2025-06-28)

### Bug Fixes

* **docs:** fix typo in docs navigation ([1a2b87a](https://gitlab.com/html-validate/html-validate/commit/1a2b87a4eca16562f3738067245ce4be140dcf7d))
* **rules:** `no-raw-characters` ignores boolean attributes in favor of `attribute-allowed-values` ([22b18be](https://gitlab.com/html-validate/html-validate/commit/22b18be4aa3c25c205d0f735a3da6824edbe31ae)), closes [#296](https://gitlab.com/html-validate/html-validate/issues/296)
* **rules:** allow aria-label on `<dialog>` ([bd07810](https://gitlab.com/html-validate/html-validate/commit/bd07810dd2cddf61f2893d1e051126c39c4207b0)), closes [#304](https://gitlab.com/html-validate/html-validate/issues/304)
* **vitest:** fix matchers augmentation for typescript ([7c4bb69](https://gitlab.com/html-validate/html-validate/commit/7c4bb69a1bda07f266c4cff5b751526ebfb05595))