html-validate 6.1.5 → 6.3.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/browser.js +0 -1
- package/dist/cjs/browser.js.map +1 -1
- package/dist/cjs/cli.js +0 -1
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/core.d.ts +2 -1
- package/dist/cjs/core.js +97 -22
- package/dist/cjs/core.js.map +1 -1
- package/dist/cjs/html-validate.js +0 -1
- package/dist/cjs/html-validate.js.map +1 -1
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/jest.js +0 -1
- package/dist/cjs/jest.js.map +1 -1
- package/dist/es/browser.js +0 -1
- package/dist/es/browser.js.map +1 -1
- package/dist/es/cli.js +0 -1
- package/dist/es/cli.js.map +1 -1
- package/dist/es/core.d.ts +2 -1
- package/dist/es/core.js +97 -21
- package/dist/es/core.js.map +1 -1
- package/dist/es/html-validate.js +0 -1
- package/dist/es/html-validate.js.map +1 -1
- package/dist/es/index.js +0 -1
- package/dist/es/index.js.map +1 -1
- package/dist/es/jest.js +0 -1
- package/dist/es/jest.js.map +1 -1
- package/dist/schema/elements.json +7 -1
- package/package.json +24 -27
- package/CHANGELOG.md +0 -1714
package/CHANGELOG.md
DELETED
|
@@ -1,1714 +0,0 @@
|
|
|
1
|
-
# html-validate changelog
|
|
2
|
-
|
|
3
|
-
### [6.1.5](https://gitlab.com/html-validate/html-validate/compare/v6.1.4...v6.1.5) (2021-12-28)
|
|
4
|
-
|
|
5
|
-
### Bug Fixes
|
|
6
|
-
|
|
7
|
-
- **config:** dont process extends multiple times ([f014311](https://gitlab.com/html-validate/html-validate/commit/f01431147a74272142dd6ddcfe5d53bf68c80aa9))
|
|
8
|
-
- **config:** elements from extended configs should be loaded first not last ([d19519e](https://gitlab.com/html-validate/html-validate/commit/d19519e5ee97e7b5c375bca80f01dcbaa5eb0373))
|
|
9
|
-
|
|
10
|
-
### [6.1.4](https://gitlab.com/html-validate/html-validate/compare/v6.1.3...v6.1.4) (2021-12-04)
|
|
11
|
-
|
|
12
|
-
### Bug Fixes
|
|
13
|
-
|
|
14
|
-
- handle multiline `srcset` attribute ([0bb92a7](https://gitlab.com/html-validate/html-validate/commit/0bb92a7c649d44281f530ea105aba55c9f3191ff)), closes [#138](https://gitlab.com/html-validate/html-validate/issues/138)
|
|
15
|
-
|
|
16
|
-
### [6.1.3](https://gitlab.com/html-validate/html-validate/compare/v6.1.2...v6.1.3) (2021-11-19)
|
|
17
|
-
|
|
18
|
-
### Bug Fixes
|
|
19
|
-
|
|
20
|
-
- parse `<style>` content as text instead of markup ([0ab61e6](https://gitlab.com/html-validate/html-validate/commit/0ab61e6f9c875f76d0b7725f615808eedf1531fd)), closes [#137](https://gitlab.com/html-validate/html-validate/issues/137)
|
|
21
|
-
- **rules:** handle malformed `style` attribute in `no-inline-style` rule ([7e12d50](https://gitlab.com/html-validate/html-validate/commit/7e12d507785eaf4fbbacf9b6ad53c31d5c6aece0))
|
|
22
|
-
|
|
23
|
-
### [6.1.2](https://gitlab.com/html-validate/html-validate/compare/v6.1.1...v6.1.2) (2021-11-13)
|
|
24
|
-
|
|
25
|
-
### Bug Fixes
|
|
26
|
-
|
|
27
|
-
- fix .d.ts paths in package ([f24c2f4](https://gitlab.com/html-validate/html-validate/commit/f24c2f4752680edc6624d173599032cc5ed9830b))
|
|
28
|
-
|
|
29
|
-
### [6.1.1](https://gitlab.com/html-validate/html-validate/compare/v6.1.0...v6.1.1) (2021-11-10)
|
|
30
|
-
|
|
31
|
-
### Dependency upgrades
|
|
32
|
-
|
|
33
|
-
- **deps:** update dependency @sidvind/better-ajv-errors to v1 ([373b608](https://gitlab.com/html-validate/html-validate/commit/373b6086871bbcbb7df9c034ed73a513f9a97c8e))
|
|
34
|
-
|
|
35
|
-
## [6.1.0](https://gitlab.com/html-validate/html-validate/compare/v6.0.2...v6.1.0) (2021-10-02)
|
|
36
|
-
|
|
37
|
-
### Features
|
|
38
|
-
|
|
39
|
-
- **rules:** `allowed-links` support `include` and `exclude` ([a3f7b6a](https://gitlab.com/html-validate/html-validate/commit/a3f7b6aa2414ab41239ec1aed6d463502575bb13))
|
|
40
|
-
|
|
41
|
-
### Bug Fixes
|
|
42
|
-
|
|
43
|
-
- handle multiline templating strings ([cddf7d5](https://gitlab.com/html-validate/html-validate/commit/cddf7d5e66ad3ce3f49b32b5dea873b04f9b6f7d)), closes [#134](https://gitlab.com/html-validate/html-validate/issues/134)
|
|
44
|
-
|
|
45
|
-
### [6.0.2](https://gitlab.com/html-validate/html-validate/compare/v6.0.1...v6.0.2) (2021-09-27)
|
|
46
|
-
|
|
47
|
-
### Bug Fixes
|
|
48
|
-
|
|
49
|
-
- **jest:** jest matcher should use FileSystemConfigLoader ([4d04bdc](https://gitlab.com/html-validate/html-validate/commit/4d04bdcdec2380cf6bc54bba8efd6f92d3c8d7bc))
|
|
50
|
-
|
|
51
|
-
### [6.0.1](https://gitlab.com/html-validate/html-validate/compare/v6.0.0...v6.0.1) (2021-09-27)
|
|
52
|
-
|
|
53
|
-
### Bug Fixes
|
|
54
|
-
|
|
55
|
-
- docs ([4973ee4](https://gitlab.com/html-validate/html-validate/commit/4973ee4f9e2e5270654a5295f5e252121358e289))
|
|
56
|
-
|
|
57
|
-
## [6.0.0](https://gitlab.com/html-validate/html-validate/compare/v5.5.0...v6.0.0) (2021-09-26)
|
|
58
|
-
|
|
59
|
-
### ⚠ BREAKING CHANGES
|
|
60
|
-
|
|
61
|
-
- **htmlvalidate:** This change only affects API users, the CLI tool continues to
|
|
62
|
-
work as before.
|
|
63
|
-
|
|
64
|
-
The default configuration loader has changed from `FileSystemConfigLoader` to
|
|
65
|
-
`StaticConfigLoader`, i.e. the directory traversal looking for
|
|
66
|
-
`.htmlvalidate.json` configuration files must now be explicitly enabled.
|
|
67
|
-
|
|
68
|
-
See [MIGRATION.md](https://html-validate.org/migration/index.html) for details.
|
|
69
|
-
|
|
70
|
-
- **event:** `ConfigReadyEvent` passes `ResolvedConfig` instance instead of `ConfigData`
|
|
71
|
-
- **meta:** `MetaElement.attribute` has changed from `string[]` to
|
|
72
|
-
`MetaAttribute[]` and both `requiredAttributes` and `deprecatedAttributes` has
|
|
73
|
-
been merged into object. This only affects API usage, primarily custom rules
|
|
74
|
-
accessing attribute metadata.See `MIGRATION.md` for details.
|
|
75
|
-
|
|
76
|
-
The old format is deprecated but is internally converted as to not break user
|
|
77
|
-
configuration. For compatibility it will probably be around for quite a while
|
|
78
|
-
but users should try to migrate as soon as possible.
|
|
79
|
-
|
|
80
|
-
### Features
|
|
81
|
-
|
|
82
|
-
- bump required node version to 12.22 ([80f3399](https://gitlab.com/html-validate/html-validate/commit/80f3399a3f863a81fcb505a4d0763bb8cffbbdeb))
|
|
83
|
-
- **elements:** migrate bundled html5 element metadata to new attribute syntax ([6132b82](https://gitlab.com/html-validate/html-validate/commit/6132b829e085689bd4d07aaf072e100609a950bd))
|
|
84
|
-
- **event:** `ConfigReadyEvent` passes `ResolvedConfig` instance instead of `ConfigData` ([5808a6b](https://gitlab.com/html-validate/html-validate/commit/5808a6b5ad3473f39b850778c1ae46d147abf1f6))
|
|
85
|
-
- **htmlvalidate:** use `StaticConfigLoader` by default ([bb94341](https://gitlab.com/html-validate/html-validate/commit/bb94341e411a40745d36362be37e0984420c6771))
|
|
86
|
-
- **meta:** add new list property to `MetaAttribute` ([4c1e3c9](https://gitlab.com/html-validate/html-validate/commit/4c1e3c97e741710e30765f9b3519b586462a2b87))
|
|
87
|
-
- **meta:** extend element attribute metadata ([6506aa6](https://gitlab.com/html-validate/html-validate/commit/6506aa6f109a5cb614d6e2817e4d26322758096b)), closes [#71](https://gitlab.com/html-validate/html-validate/issues/71)
|
|
88
|
-
|
|
89
|
-
### Dependency upgrades
|
|
90
|
-
|
|
91
|
-
- **deps:** update dependency espree to v9 ([3e0ea96](https://gitlab.com/html-validate/html-validate/commit/3e0ea96a4f8fd76db7a1113ff6ca8ea29edd62d9))
|
|
92
|
-
|
|
93
|
-
### [4.14.1](https://gitlab.com/html-validate/html-validate/compare/v4.14.0...v4.14.1) (2021-09-18)
|
|
94
|
-
|
|
95
|
-
### Bug Fixes
|
|
96
|
-
|
|
97
|
-
- **jest:** handle when `jest-diff` default import is object ([74f9b84](https://gitlab.com/html-validate/html-validate/commit/74f9b8424e0bf5071823e82bfc79d8904025808a))
|
|
98
|
-
|
|
99
|
-
## [5.5.0](https://gitlab.com/html-validate/html-validate/compare/v5.4.1...v5.5.0) (2021-09-05)
|
|
100
|
-
|
|
101
|
-
### Features
|
|
102
|
-
|
|
103
|
-
- **dom:** add iterator to `DOMTokenList` ([7bef736](https://gitlab.com/html-validate/html-validate/commit/7bef736bd9902388299e550618192d8465e5f3cc))
|
|
104
|
-
- **rules:** `no-missing-references` handles more aria attributes ([2843680](https://gitlab.com/html-validate/html-validate/commit/2843680da32fbe7c95f91c72d2d7607a381d5992))
|
|
105
|
-
- **rules:** add `minInitialRank` option to `heading-level` ([7f58572](https://gitlab.com/html-validate/html-validate/commit/7f585721fcb8e744863584cbe6e21130ade198eb)), closes [#132](https://gitlab.com/html-validate/html-validate/issues/132)
|
|
106
|
-
|
|
107
|
-
### Bug Fixes
|
|
108
|
-
|
|
109
|
-
- **jest:** synchronous matchers as long as the passed value is synchronous ([0ede9f7](https://gitlab.com/html-validate/html-validate/commit/0ede9f74f073b3d01fafff455cc3674fa1898b40))
|
|
110
|
-
- **rules:** `no-missing-references` handles attributes with reference lists ([2afcd86](https://gitlab.com/html-validate/html-validate/commit/2afcd86c1ead8eec42819310bae9990e45122b0e)), closes [#133](https://gitlab.com/html-validate/html-validate/issues/133)
|
|
111
|
-
|
|
112
|
-
### [5.4.1](https://gitlab.com/html-validate/html-validate/compare/v5.4.0...v5.4.1) (2021-08-29)
|
|
113
|
-
|
|
114
|
-
### Bug Fixes
|
|
115
|
-
|
|
116
|
-
- **meta:** use global meta as base when merging ([9fe3793](https://gitlab.com/html-validate/html-validate/commit/9fe3793b17bd6deb894e5d479ab11a51935829a1)), closes [#60](https://gitlab.com/html-validate/html-validate/issues/60)
|
|
117
|
-
|
|
118
|
-
## [5.4.0](https://gitlab.com/html-validate/html-validate/compare/v5.3.0...v5.4.0) (2021-08-27)
|
|
119
|
-
|
|
120
|
-
### Features
|
|
121
|
-
|
|
122
|
-
- **cli:** expand relative paths to absolute paths ([bdc3019](https://gitlab.com/html-validate/html-validate/commit/bdc30197be25c031999e156fd7dcb4f456fc7f0e)), closes [#131](https://gitlab.com/html-validate/html-validate/issues/131)
|
|
123
|
-
|
|
124
|
-
### Bug Fixes
|
|
125
|
-
|
|
126
|
-
- **cli:** handle absolute paths as input filenames ([c860af6](https://gitlab.com/html-validate/html-validate/commit/c860af66d02bf46e24a11756d5611b4c9b449ccb)), closes [#131](https://gitlab.com/html-validate/html-validate/issues/131)
|
|
127
|
-
|
|
128
|
-
## [5.3.0](https://gitlab.com/html-validate/html-validate/compare/v5.2.1...v5.3.0) (2021-08-23)
|
|
129
|
-
|
|
130
|
-
### Features
|
|
131
|
-
|
|
132
|
-
- jest matchers support async results ([ef7331f](https://gitlab.com/html-validate/html-validate/commit/ef7331f28c90fc7623b1124ed60e02e6c6018e28))
|
|
133
|
-
|
|
134
|
-
### Bug Fixes
|
|
135
|
-
|
|
136
|
-
- **jest:** handle when `jest-diff` default import is object ([7413db9](https://gitlab.com/html-validate/html-validate/commit/7413db9d2b02dde00ba1b32fb58ec6e47e7cc951))
|
|
137
|
-
|
|
138
|
-
### [5.2.1](https://gitlab.com/html-validate/html-validate/compare/v5.2.0...v5.2.1) (2021-08-09)
|
|
139
|
-
|
|
140
|
-
### Bug Fixes
|
|
141
|
-
|
|
142
|
-
- **html5:** add `user` and `environment` to `capture` attribute ([d6b8f90](https://gitlab.com/html-validate/html-validate/commit/d6b8f9062d7ecbe8148c5ae2f801a09411b57213)), closes [#130](https://gitlab.com/html-validate/html-validate/issues/130)
|
|
143
|
-
|
|
144
|
-
## [5.2.0](https://gitlab.com/html-validate/html-validate/compare/v5.1.1...v5.2.0) (2021-07-23)
|
|
145
|
-
|
|
146
|
-
### Features
|
|
147
|
-
|
|
148
|
-
- support specifying a custom loader when using library ([0e509a3](https://gitlab.com/html-validate/html-validate/commit/0e509a3d7b8931acfc2bb2452ff81ecb0877aaa8))
|
|
149
|
-
- **config:** add `StaticConfigData` for simple static config ([ae40706](https://gitlab.com/html-validate/html-validate/commit/ae40706f6ab545b23ae8ceb008122d23264423b9))
|
|
150
|
-
|
|
151
|
-
### Bug Fixes
|
|
152
|
-
|
|
153
|
-
- **elements:** disallow whitespace in `id` ([df2906b](https://gitlab.com/html-validate/html-validate/commit/df2906bd2a19fcc7c7a6c020af5b3550cbcc5158))
|
|
154
|
-
- **meta:** regex matching attribute allowed values matches entire string ([ffa0d12](https://gitlab.com/html-validate/html-validate/commit/ffa0d122d9941128de4ebd433a1508854ac6b9b8))
|
|
155
|
-
- **rules:** handle id with whitespace in `no-redundant-for` ([a79f266](https://gitlab.com/html-validate/html-validate/commit/a79f2669c88a135bab987ea5c64ddd6f47fd3736)), closes [#128](https://gitlab.com/html-validate/html-validate/issues/128)
|
|
156
|
-
|
|
157
|
-
### [5.1.1](https://gitlab.com/html-validate/html-validate/compare/v5.1.0...v5.1.1) (2021-07-11)
|
|
158
|
-
|
|
159
|
-
### Bug Fixes
|
|
160
|
-
|
|
161
|
-
- broken typescript declaration in previous release ([ad9cf68](https://gitlab.com/html-validate/html-validate/commit/ad9cf6832ac1b02bab282445d7e8b294c9ce524e)), closes [#127](https://gitlab.com/html-validate/html-validate/issues/127)
|
|
162
|
-
|
|
163
|
-
## [5.1.0](https://gitlab.com/html-validate/html-validate/compare/v5.0.2...v5.1.0) (2021-07-11)
|
|
164
|
-
|
|
165
|
-
### Features
|
|
166
|
-
|
|
167
|
-
- **lexer:** add attribute key-value delimiter to attribute value token ([0979798](https://gitlab.com/html-validate/html-validate/commit/0979798ac191af4a26667a282e3e554fee4450ac))
|
|
168
|
-
- **rules:** new rule `attr-delimiter` ([eb98461](https://gitlab.com/html-validate/html-validate/commit/eb9846155dbc42f860c31301373332624d35a3bd)), closes [#126](https://gitlab.com/html-validate/html-validate/issues/126)
|
|
169
|
-
- support .cjs configuration files ([cd458e3](https://gitlab.com/html-validate/html-validate/commit/cd458e3e16826700b93860507222d5af792204ef))
|
|
170
|
-
|
|
171
|
-
### Bug Fixes
|
|
172
|
-
|
|
173
|
-
- automatically find external dependencies ([62af8c5](https://gitlab.com/html-validate/html-validate/commit/62af8c5c97bdce0303ea8c5e00050014a959b08a))
|
|
174
|
-
- es build ([6b1cec5](https://gitlab.com/html-validate/html-validate/commit/6b1cec5b3321ddd8094483a50ce1cd686356142f))
|
|
175
|
-
- import semver correctly ([4ed8eac](https://gitlab.com/html-validate/html-validate/commit/4ed8eac2609dfd5411180bb6166ab8a8783dc53b))
|
|
176
|
-
- make prefer-button tag and attribute checks case-insensitive ([95e7748](https://gitlab.com/html-validate/html-validate/commit/95e774863a3df2197fb2cf7879e0e8cd83c3c4bd))
|
|
177
|
-
- only check value of type attribute in prefer-button rule ([2e46586](https://gitlab.com/html-validate/html-validate/commit/2e46586b5d69be6847128e58271d382cb7f46e90))
|
|
178
|
-
|
|
179
|
-
### [5.0.2](https://gitlab.com/html-validate/html-validate/compare/v5.0.1...v5.0.2) (2021-06-28)
|
|
180
|
-
|
|
181
|
-
### Bug Fixes
|
|
182
|
-
|
|
183
|
-
- handle leading and trailing whitespace in `style` attributes ([a71b947](https://gitlab.com/html-validate/html-validate/commit/a71b94747eda26e8e50ff28b1a0269646ee09818)), closes [#122](https://gitlab.com/html-validate/html-validate/issues/122)
|
|
184
|
-
|
|
185
|
-
### [5.0.1](https://gitlab.com/html-validate/html-validate/compare/v5.0.0...v5.0.1) (2021-06-27)
|
|
186
|
-
|
|
187
|
-
### Bug Fixes
|
|
188
|
-
|
|
189
|
-
- custom log callback for `compatibilityCheck` ([cbd2226](https://gitlab.com/html-validate/html-validate/commit/cbd22269ce2a5debb87c785b9db8740d4874ab4e))
|
|
190
|
-
|
|
191
|
-
### Dependency upgrades
|
|
192
|
-
|
|
193
|
-
- **deps:** update dependency @html-validate/stylish to v2 ([ab0b1f9](https://gitlab.com/html-validate/html-validate/commit/ab0b1f9d394c7b97350e6c1826fc8ee94d065015))
|
|
194
|
-
|
|
195
|
-
## [5.0.0](https://gitlab.com/html-validate/html-validate/compare/v4.14.0...v5.0.0) (2021-06-27)
|
|
196
|
-
|
|
197
|
-
### ⚠ BREAKING CHANGES
|
|
198
|
-
|
|
199
|
-
- the library is now shipped as a hybrid CJS/ESM package. If you
|
|
200
|
-
are simply consuming the CLI tool or one of the existing integrations this will
|
|
201
|
-
not affect you.
|
|
202
|
-
|
|
203
|
-
For plugin developers and if you consume the API in any way the biggest change
|
|
204
|
-
is that the distributed source is now bundled and you can no longer access
|
|
205
|
-
individual files.
|
|
206
|
-
|
|
207
|
-
Typically something like:
|
|
208
|
-
|
|
209
|
-
```diff
|
|
210
|
-
-import foo from "html-validate/dist/foo";
|
|
211
|
-
+import { foo } from "html-validate"
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
Feel free to open an issue if some symbol you need isn't exported.
|
|
215
|
-
|
|
216
|
-
If your usage includes checking presence of rules use the `ruleExists` helper:
|
|
217
|
-
|
|
218
|
-
```diff
|
|
219
|
-
-try {
|
|
220
|
-
- require("html-validate/dist/rules/attr-case");
|
|
221
|
-
-} catch (err) {
|
|
222
|
-
- /* fallback */
|
|
223
|
-
-}
|
|
224
|
-
+import { ruleExists } from "html-validate";
|
|
225
|
-
+if (!ruleExists("attr-case")) {
|
|
226
|
-
+ /* fallback */
|
|
227
|
-
+}
|
|
228
|
-
```
|
|
229
|
-
|
|
230
|
-
- drop support for NodeJS 10
|
|
231
|
-
|
|
232
|
-
### Features
|
|
233
|
-
|
|
234
|
-
- add `compatibilityCheck` helper for plugins ([4758595](https://gitlab.com/html-validate/html-validate/commit/47585951e7faf026bccc228d537f678d69da1c8a))
|
|
235
|
-
- cjs/esm hybrid package ([39c960a](https://gitlab.com/html-validate/html-validate/commit/39c960a19f47cedcb55edf0865a3e6bd174a61f6)), closes [#112](https://gitlab.com/html-validate/html-validate/issues/112)
|
|
236
|
-
- drop support for NodeJS 10 ([8f74291](https://gitlab.com/html-validate/html-validate/commit/8f74291919e1bcdab88ae6b74ba4199b16a4ef54))
|
|
237
|
-
|
|
238
|
-
### Dependency upgrades
|
|
239
|
-
|
|
240
|
-
- **deps:** update dependency ajv to v8 ([cccb73a](https://gitlab.com/html-validate/html-validate/commit/cccb73ad33db7f8032ecef469dc77a3df24eb29f))
|
|
241
|
-
|
|
242
|
-
## [4.14.0](https://gitlab.com/html-validate/html-validate/compare/v4.13.1...v4.14.0) (2021-06-14)
|
|
243
|
-
|
|
244
|
-
### Features
|
|
245
|
-
|
|
246
|
-
- new rule `attr-pattern` ([b813aeb](https://gitlab.com/html-validate/html-validate/commit/b813aeb7348d20b1cba2ea3df7c5bd7ac952e324)), closes [#118](https://gitlab.com/html-validate/html-validate/issues/118)
|
|
247
|
-
- new rule `input-attributes` ([23ee19e](https://gitlab.com/html-validate/html-validate/commit/23ee19eab292a97427ddc15db1bb77346489c002)), closes [#119](https://gitlab.com/html-validate/html-validate/issues/119)
|
|
248
|
-
|
|
249
|
-
### [4.13.1](https://gitlab.com/html-validate/html-validate/compare/v4.13.0...v4.13.1) (2021-05-28)
|
|
250
|
-
|
|
251
|
-
### Bug Fixes
|
|
252
|
-
|
|
253
|
-
- **jest:** fix `TypeError: diff is not a function` ([2afc2e8](https://gitlab.com/html-validate/html-validate/commit/2afc2e8796d9e2a8b9b79af91625f6d844860a53))
|
|
254
|
-
|
|
255
|
-
## [4.13.0](https://gitlab.com/html-validate/html-validate/compare/v4.12.0...v4.13.0) (2021-05-28)
|
|
256
|
-
|
|
257
|
-
### Features
|
|
258
|
-
|
|
259
|
-
- **jest:** better compatibility with jest in node environment ([79d14ca](https://gitlab.com/html-validate/html-validate/commit/79d14ca23bacf6848ce67b6f4ec853bbfee5f5a6))
|
|
260
|
-
|
|
261
|
-
### Dependency upgrades
|
|
262
|
-
|
|
263
|
-
- **deps:** support jest v27 ([863f73d](https://gitlab.com/html-validate/html-validate/commit/863f73dfec245a1a806bb7a6690fbc633887a334))
|
|
264
|
-
- **deps:** update dependency @sidvind/better-ajv-errors to ^0.9.0 ([8f6d162](https://gitlab.com/html-validate/html-validate/commit/8f6d1628a9dcc8554b17a37a31e29cdb98f2dd01))
|
|
265
|
-
|
|
266
|
-
## [4.12.0](https://gitlab.com/html-validate/html-validate/compare/v4.11.0...v4.12.0) (2021-05-17)
|
|
267
|
-
|
|
268
|
-
### Features
|
|
269
|
-
|
|
270
|
-
- **rules:** enforce initial heading-level in sectioning roots ([c4306ad](https://gitlab.com/html-validate/html-validate/commit/c4306ad6920005c760431c2681d37e2fc25949fd))
|
|
271
|
-
|
|
272
|
-
## [4.11.0](https://gitlab.com/html-validate/html-validate/compare/v4.10.1...v4.11.0) (2021-05-08)
|
|
273
|
-
|
|
274
|
-
### Features
|
|
275
|
-
|
|
276
|
-
- `dom:ready` and `dom:load` contains `source` reference ([430ec7c](https://gitlab.com/html-validate/html-validate/commit/430ec7c611ce5f09dfaa7e1e08febe756ee87db1)), closes [#115](https://gitlab.com/html-validate/html-validate/issues/115)
|
|
277
|
-
- add `:scope` pseudoselector ([6e3d837](https://gitlab.com/html-validate/html-validate/commit/6e3d83713ab74297a4b4af41f6b244c9e3d7822a)), closes [#114](https://gitlab.com/html-validate/html-validate/issues/114)
|
|
278
|
-
- add `isSameNode()` ([7d99007](https://gitlab.com/html-validate/html-validate/commit/7d99007b9458d2ff1ca37aae756dd2806837ca68))
|
|
279
|
-
- add new event `source:ready` ([4c1d115](https://gitlab.com/html-validate/html-validate/commit/4c1d115594f0eebdccfcbe6a6518a805b4a26929)), closes [#115](https://gitlab.com/html-validate/html-validate/issues/115)
|
|
280
|
-
- **rules:** `deprecated` takes `include` and `exclude` options ([e00d7c1](https://gitlab.com/html-validate/html-validate/commit/e00d7c161bf7244931378f51b3c481016d49aad6))
|
|
281
|
-
|
|
282
|
-
### Bug Fixes
|
|
283
|
-
|
|
284
|
-
- **dom:** throw if `tagName` is invalid ([42d7100](https://gitlab.com/html-validate/html-validate/commit/42d710020eb3c0e4d2e528859ed23a56095feb87))
|
|
285
|
-
|
|
286
|
-
### [4.10.1](https://gitlab.com/html-validate/html-validate/compare/v4.10.0...v4.10.1) (2021-04-25)
|
|
287
|
-
|
|
288
|
-
### Bug Fixes
|
|
289
|
-
|
|
290
|
-
- handle directives with excessive whitespace ([0400563](https://gitlab.com/html-validate/html-validate/commit/040056356589b7caf6ae18ee59d11a2f25c9ea44))
|
|
291
|
-
|
|
292
|
-
## [4.10.0](https://gitlab.com/html-validate/html-validate/compare/v4.9.0...v4.10.0) (2021-04-18)
|
|
293
|
-
|
|
294
|
-
### Features
|
|
295
|
-
|
|
296
|
-
- **dom:** implement {first,last}ElementChild accessors ([5e70aee](https://gitlab.com/html-validate/html-validate/commit/5e70aee128643dfcc01f1a8d1e894cc898ab0beb))
|
|
297
|
-
- **formatters:** `stylish` and `codeframe` displays links to error descriptions ([86cf213](https://gitlab.com/html-validate/html-validate/commit/86cf2136d227fadb9aa3d5eeb2eebe222f7a150d)), closes [#113](https://gitlab.com/html-validate/html-validate/issues/113)
|
|
298
|
-
- **formatters:** checkstyle output is indented ([e284fb7](https://gitlab.com/html-validate/html-validate/commit/e284fb72a551d99f92b3aaa3341a5749d9cfe2a5))
|
|
299
|
-
- **parser:** add full location to `attr` event (key, quotes, value) ([931a39f](https://gitlab.com/html-validate/html-validate/commit/931a39f04b140f6d16b28fee03396c12ecd1b5a2))
|
|
300
|
-
- **rules:** add rule url to `Message` ([6845fac](https://gitlab.com/html-validate/html-validate/commit/6845fac266c7748f679cbab94141db12319a822b))
|
|
301
|
-
- **rules:** new option `allowedProperties` to `no-inline-style` (defaults to `display`) ([75aa5f0](https://gitlab.com/html-validate/html-validate/commit/75aa5f0f446b9a14711b1c8b8d44fd6fd7ff84a7))
|
|
302
|
-
|
|
303
|
-
### Bug Fixes
|
|
304
|
-
|
|
305
|
-
- **rules:** rule documentation url for rules in subdirectories ([c91c36d](https://gitlab.com/html-validate/html-validate/commit/c91c36d561a332f2389deb795f9248e5cc21bffd))
|
|
306
|
-
|
|
307
|
-
## [4.9.0](https://gitlab.com/html-validate/html-validate/compare/v4.8.0...v4.9.0) (2021-04-04)
|
|
308
|
-
|
|
309
|
-
### Features
|
|
310
|
-
|
|
311
|
-
- add rule option schemas ([f88f0da](https://gitlab.com/html-validate/html-validate/commit/f88f0da04fa674e494dd2d25e8b997c06161a73f))
|
|
312
|
-
- **rules:** validate rule configuration ([5ab6a21](https://gitlab.com/html-validate/html-validate/commit/5ab6a21bc5cac30676ca9334bd3d68c1cad73f45))
|
|
313
|
-
|
|
314
|
-
### Bug Fixes
|
|
315
|
-
|
|
316
|
-
- **config:** validate preset configurations ([dca9fc3](https://gitlab.com/html-validate/html-validate/commit/dca9fc3fb60da5f88668a66584b9c5965e26d5c6))
|
|
317
|
-
- **error:** present original json for configuration errors ([23a50f3](https://gitlab.com/html-validate/html-validate/commit/23a50f33ddbb40c430ccdfb73195a3b76b335766))
|
|
318
|
-
- **meta:** memory leak when loading meta table ([940ca4e](https://gitlab.com/html-validate/html-validate/commit/940ca4e1759fd22c4e6b29267329c40cd3d7561e)), closes [#106](https://gitlab.com/html-validate/html-validate/issues/106)
|
|
319
|
-
|
|
320
|
-
## [4.8.0](https://gitlab.com/html-validate/html-validate/compare/v4.7.1...v4.8.0) (2021-03-28)
|
|
321
|
-
|
|
322
|
-
### Features
|
|
323
|
-
|
|
324
|
-
- support ignoring files with `.htmlvalidateignore` ([77ec9a6](https://gitlab.com/html-validate/html-validate/commit/77ec9a623c5fabcbd743394d0bb58887d44d73c1)), closes [#109](https://gitlab.com/html-validate/html-validate/issues/109)
|
|
325
|
-
|
|
326
|
-
### [4.7.1](https://gitlab.com/html-validate/html-validate/compare/v4.7.0...v4.7.1) (2021-03-19)
|
|
327
|
-
|
|
328
|
-
### Bug Fixes
|
|
329
|
-
|
|
330
|
-
- add `$schema` to `html5.json` ([9a89d30](https://gitlab.com/html-validate/html-validate/commit/9a89d30c7172d787cd365205345da9a4fc0ad2dd))
|
|
331
|
-
|
|
332
|
-
### [4.1.1](https://gitlab.com/html-validate/html-validate/compare/v4.1.0...v4.1.1) (2021-03-19)
|
|
333
|
-
|
|
334
|
-
### Bug Fixes
|
|
335
|
-
|
|
336
|
-
- `$schema` keyword being invalid ([3b67062](https://gitlab.com/html-validate/html-validate/commit/3b67062260c9e85e5d6213b7d3f8e6009c823264))
|
|
337
|
-
|
|
338
|
-
## [4.7.0](https://gitlab.com/html-validate/html-validate/compare/v4.6.1...v4.7.0) (2021-03-14)
|
|
339
|
-
|
|
340
|
-
### Features
|
|
341
|
-
|
|
342
|
-
- new rule `aria-label-misuse` ([b8c6eb7](https://gitlab.com/html-validate/html-validate/commit/b8c6eb7a12849dd9ce08e8d64fbc3aaec5b6d278)), closes [#110](https://gitlab.com/html-validate/html-validate/issues/110)
|
|
343
|
-
- support `.htmlvalidate.js` ([b694ddf](https://gitlab.com/html-validate/html-validate/commit/b694ddfa1afa05eb86689aa590a8d232d0d20f66)), closes [#111](https://gitlab.com/html-validate/html-validate/issues/111)
|
|
344
|
-
|
|
345
|
-
### Bug Fixes
|
|
346
|
-
|
|
347
|
-
- **dom:** `input[type="hidden"]` no longer labelable ([244d37d](https://gitlab.com/html-validate/html-validate/commit/244d37d3195afb50f75eed0b835f66c325d941e3))
|
|
348
|
-
|
|
349
|
-
### [4.6.1](https://gitlab.com/html-validate/html-validate/compare/v4.6.0...v4.6.1) (2021-03-02)
|
|
350
|
-
|
|
351
|
-
### Bug Fixes
|
|
352
|
-
|
|
353
|
-
- **dom:** `generateSelector()` escapes characters ([c2e316c](https://gitlab.com/html-validate/html-validate/commit/c2e316c6e980c7814d0a34102f8da529a111b5f6)), closes [#108](https://gitlab.com/html-validate/html-validate/issues/108)
|
|
354
|
-
- **dom:** `querySelector` handles escaped characters ([30e7503](https://gitlab.com/html-validate/html-validate/commit/30e75036b71dbf7564021b89a02aab11342647b7))
|
|
355
|
-
- **dom:** throw error when selector is missing pseudoclass name ([516ca06](https://gitlab.com/html-validate/html-validate/commit/516ca065dfcbc22d542f2336d91d0685f1870c64))
|
|
356
|
-
|
|
357
|
-
## [4.6.0](https://gitlab.com/html-validate/html-validate/compare/v4.5.0...v4.6.0) (2021-02-13)
|
|
358
|
-
|
|
359
|
-
### Features
|
|
360
|
-
|
|
361
|
-
- **parser:** add DOCTYPE tag to `DoctypeEvent` ([8c53d40](https://gitlab.com/html-validate/html-validate/commit/8c53d40b8ed3bbf8f5016cf58c63e75a09e4964e))
|
|
362
|
-
- **parser:** new event `token` emitted for each lexer token ([f9d44d6](https://gitlab.com/html-validate/html-validate/commit/f9d44d665c0c5f5522f9220ac8940c1d285b339e))
|
|
363
|
-
- **rules:** allow rules to unregister event listeners ([8b1a6bc](https://gitlab.com/html-validate/html-validate/commit/8b1a6bc3ce2c38d7ff6a68b8ea54a6b2784a6e45))
|
|
364
|
-
- **rules:** new rule `attr-spacing` requiring attributes to be separated by whitespace ([7734dc6](https://gitlab.com/html-validate/html-validate/commit/7734dc6855bb1fccbb0e66ddc7684c6ba997912a)), closes [#105](https://gitlab.com/html-validate/html-validate/issues/105)
|
|
365
|
-
- **rules:** new rule `doctype-style` requiring doctype to be specific case ([e94f819](https://gitlab.com/html-validate/html-validate/commit/e94f8191c6da0acf02b1322d140ff8afa3a8c33f))
|
|
366
|
-
- **rules:** new rule `no-utf8-bom` disallowing usage of UTF-8 BOM ([7a2d264](https://gitlab.com/html-validate/html-validate/commit/7a2d264f6ff805740a2c1ed3988327cd96441682))
|
|
367
|
-
|
|
368
|
-
### Bug Fixes
|
|
369
|
-
|
|
370
|
-
- **lexer:** handle CRLF after xml declaration ([97fd77d](https://gitlab.com/html-validate/html-validate/commit/97fd77de1467a9e97cc80fd1a4643b88701cbdb0))
|
|
371
|
-
- **lexer:** handle doctype with mixed case ([a40e28e](https://gitlab.com/html-validate/html-validate/commit/a40e28e2c115ae3382ef6b63827fdf1685134692))
|
|
372
|
-
- **lexer:** handle html comment before doctype ([6c1b830](https://gitlab.com/html-validate/html-validate/commit/6c1b830898534cbfed2adb5cb6b06abfdeaede1b))
|
|
373
|
-
- **lexer:** handle unicode bom ([97506b1](https://gitlab.com/html-validate/html-validate/commit/97506b1a8b143c9e686538fa02d349091b9076a3))
|
|
374
|
-
|
|
375
|
-
## [4.5.0](https://gitlab.com/html-validate/html-validate/compare/v4.4.0...v4.5.0) (2021-02-05)
|
|
376
|
-
|
|
377
|
-
### Features
|
|
378
|
-
|
|
379
|
-
- **meta:** `transparent` can be limited to specific elements ([bef8a16](https://gitlab.com/html-validate/html-validate/commit/bef8a1663b70539091c203d5a4167446513904b9))
|
|
380
|
-
|
|
381
|
-
### Bug Fixes
|
|
382
|
-
|
|
383
|
-
- **html5:** `<audio>` and `<video>` allows `<track>` and `<source>` transparently ([526006c](https://gitlab.com/html-validate/html-validate/commit/526006c6c95418ac7dac2d3ef9f7a9b4158b62d2)), closes [#104](https://gitlab.com/html-validate/html-validate/issues/104)
|
|
384
|
-
|
|
385
|
-
## [4.4.0](https://gitlab.com/html-validate/html-validate/compare/v4.3.0...v4.4.0) (2021-01-31)
|
|
386
|
-
|
|
387
|
-
### Features
|
|
388
|
-
|
|
389
|
-
- **events:** new event `tag:ready` emitted when start tag is parsed ([cfbf3dc](https://gitlab.com/html-validate/html-validate/commit/cfbf3dce948428dc3756ef60bba0a8968fbe089e))
|
|
390
|
-
- **events:** rename `tag:open` and `tag:close` to `tag:start` and `tag:end` ([7a2150f](https://gitlab.com/html-validate/html-validate/commit/7a2150f1f0b51f29bddeb782af2306de786f9529))
|
|
391
|
-
- **rules:** `heading-level` supports sectioning roots ([8149cc6](https://gitlab.com/html-validate/html-validate/commit/8149cc66e2e1fd66fc058157bda0157e271f8c96)), closes [#92](https://gitlab.com/html-validate/html-validate/issues/92)
|
|
392
|
-
|
|
393
|
-
### Bug Fixes
|
|
394
|
-
|
|
395
|
-
- **rules:** better error message for `heading-level` ([0871706](https://gitlab.com/html-validate/html-validate/commit/08717063a1b4b6f5eb88fb77cef5f5938c10e967))
|
|
396
|
-
|
|
397
|
-
### Dependency upgrades
|
|
398
|
-
|
|
399
|
-
- **deps:** update dependency @sidvind/better-ajv-errors to ^0.8.0 ([f317223](https://gitlab.com/html-validate/html-validate/commit/f31722364815f9001935330f6596df4bbb3a7204))
|
|
400
|
-
|
|
401
|
-
## [4.3.0](https://gitlab.com/html-validate/html-validate/compare/v4.2.0...v4.3.0) (2021-01-19)
|
|
402
|
-
|
|
403
|
-
### Features
|
|
404
|
-
|
|
405
|
-
- **rules:** new rule `text-content` ([2fef395](https://gitlab.com/html-validate/html-validate/commit/2fef3950e5c2e407ca206fbcf82d90793488c2da)), closes [#101](https://gitlab.com/html-validate/html-validate/issues/101)
|
|
406
|
-
- **transform:** new helper `processElement` for writing tests ([3052f81](https://gitlab.com/html-validate/html-validate/commit/3052f81edcebca58551c77d378b2e5357db47f3a))
|
|
407
|
-
- add `browser` entry point without cli classes ([7840ec2](https://gitlab.com/html-validate/html-validate/commit/7840ec2a7f823c57e7e4f50055f4bb873f961dc7))
|
|
408
|
-
- set `sideEffects` to `false` ([41b47f8](https://gitlab.com/html-validate/html-validate/commit/41b47f8bc21501e4615cd8bc887a0ffaf2869454))
|
|
409
|
-
|
|
410
|
-
### Bug Fixes
|
|
411
|
-
|
|
412
|
-
- **dom:** `DOMTokenList` (such as `classlist`) handles newlines and tabs ([35e601e](https://gitlab.com/html-validate/html-validate/commit/35e601e22c6a04f93f252810caed6b8bbb182225))
|
|
413
|
-
|
|
414
|
-
## [4.2.0](https://gitlab.com/html-validate/html-validate/compare/v4.1.0...v4.2.0) (2021-01-15)
|
|
415
|
-
|
|
416
|
-
### Features
|
|
417
|
-
|
|
418
|
-
- **dom:** disable cache until node is fully constructed ([5e35c49](https://gitlab.com/html-validate/html-validate/commit/5e35c498f790be65928989a327c40772b3fb7184))
|
|
419
|
-
- **htmlvalidate:** add `getConfigurationSchema()` to get effective configuration schema ([1dd81d9](https://gitlab.com/html-validate/html-validate/commit/1dd81d993508720b13b8c094867bd780da002b84))
|
|
420
|
-
- **htmlvalidate:** add `getElementsSchema()` to get effective elements schema ([4baac36](https://gitlab.com/html-validate/html-validate/commit/4baac36ecb608dd2ef83bbf3c284d08ed05d1087)), closes [#78](https://gitlab.com/html-validate/html-validate/issues/78)
|
|
421
|
-
- **rule:** support filter callback for rule events ([f3f949c](https://gitlab.com/html-validate/html-validate/commit/f3f949cd5f2cdef526bc1c60d9176f4ae57890ee))
|
|
422
|
-
- **rules:** add `allowMultipleH1` option to `heading-level` ([a33071d](https://gitlab.com/html-validate/html-validate/commit/a33071d12807770a9484c5d713b7037c354d8fe1))
|
|
423
|
-
|
|
424
|
-
### Bug Fixes
|
|
425
|
-
|
|
426
|
-
- enable `strictNullCheck` ([64b5af2](https://gitlab.com/html-validate/html-validate/commit/64b5af25723e6441a133a0a561a941d3f8a2daa0)), closes [#76](https://gitlab.com/html-validate/html-validate/issues/76)
|
|
427
|
-
- **event:** `location` property can be `null` for some events ([fbbc87c](https://gitlab.com/html-validate/html-validate/commit/fbbc87cf5d62d2a102d86cb8165e9d3dac630474))
|
|
428
|
-
- **event:** pass `null` when attribute value is missing ([08c2876](https://gitlab.com/html-validate/html-validate/commit/08c2876dc8f4e01f4c4b0aa97de9672b43476ca3))
|
|
429
|
-
- **rules:** rule options uses `Partial<T>` ([221113b](https://gitlab.com/html-validate/html-validate/commit/221113b41adcd9fd8ab5bc10aa9a8d6723b40db6))
|
|
430
|
-
|
|
431
|
-
### Dependency upgrades
|
|
432
|
-
|
|
433
|
-
- **deps:** update dependency ajv to v7 ([4c04388](https://gitlab.com/html-validate/html-validate/commit/4c043884a74083274f729ed0d3d40406f9163799))
|
|
434
|
-
|
|
435
|
-
## [4.1.0](https://gitlab.com/html-validate/html-validate/compare/v4.0.2...v4.1.0) (2020-12-14)
|
|
436
|
-
|
|
437
|
-
### Features
|
|
438
|
-
|
|
439
|
-
- replace `inquirer` with `prompts` ([82d17eb](https://gitlab.com/html-validate/html-validate/commit/82d17ebce26d0e215fa689095fb2822ae541f2d8))
|
|
440
|
-
|
|
441
|
-
### [4.0.2](https://gitlab.com/html-validate/html-validate/compare/v4.0.1...v4.0.2) (2020-11-19)
|
|
442
|
-
|
|
443
|
-
### Bug Fixes
|
|
444
|
-
|
|
445
|
-
- **deps:** replace dependency on `eslint` with `@html-validate/stylish` ([2d1bc81](https://gitlab.com/html-validate/html-validate/commit/2d1bc819bd241294db55fc28dd7305ee46d9ad3f))
|
|
446
|
-
|
|
447
|
-
### [4.0.1](https://gitlab.com/html-validate/html-validate/compare/v4.0.0...v4.0.1) (2020-11-09)
|
|
448
|
-
|
|
449
|
-
### Bug Fixes
|
|
450
|
-
|
|
451
|
-
- **rules:** `wcag/h32` checks for `type="image"` ([4a43819](https://gitlab.com/html-validate/html-validate/commit/4a43819d90db59ae31846f766025d4ffce189391))
|
|
452
|
-
- **rules:** `wcag/h32` handles submit buttons using `form` attribute to associate ([cb2e843](https://gitlab.com/html-validate/html-validate/commit/cb2e8437ae6ca4a14b0fb4585cdec3157c5cf2a0))
|
|
453
|
-
|
|
454
|
-
## [4.0.0](https://gitlab.com/html-validate/html-validate/compare/v3.5.0...v4.0.0) (2020-11-07)
|
|
455
|
-
|
|
456
|
-
### ⚠ BREAKING CHANGES
|
|
457
|
-
|
|
458
|
-
- **config:** With this release any custom configuration files will no longer
|
|
459
|
-
automatically extend `html-validate:recommended`.
|
|
460
|
-
|
|
461
|
-
The previous behaviour was to to always merge with the default configuration
|
|
462
|
-
containing `extends: ["html-validate:recommended"]`. This is counter-intuitive
|
|
463
|
-
when adding a blank `{}` `.htmlvalidate.json` configuration file (or a file with
|
|
464
|
-
`extends: []`). The new behaviour is to not apply default configuration if
|
|
465
|
-
another configuration is found.
|
|
466
|
-
|
|
467
|
-
To retain the previous behaviour you must ensure your configuration contains
|
|
468
|
-
`extends: ["html-validate:recommended"]`. Users who have `root: true` are not
|
|
469
|
-
affected. _If unsure: test your configuration by deliberatly introducing and
|
|
470
|
-
error and verify it is detected_.
|
|
471
|
-
|
|
472
|
-
For CLI users: ensure your `.htmlvalidate.json` configuration files are updated.
|
|
473
|
-
|
|
474
|
-
For IDE integration users: ensure your `.htmlvalidate.json` configuration files
|
|
475
|
-
are updated.
|
|
476
|
-
|
|
477
|
-
For `CLI` API users: same as with CLI the configuration loading has changed and
|
|
478
|
-
all users must update their `.htmlvalidate.json` accordingly.
|
|
479
|
-
|
|
480
|
-
For `HtmlValidate` API users: you are most likely not affected, only if both of
|
|
481
|
-
the following conditions are true you need to take care to ensure any
|
|
482
|
-
`.htmlvalidate.json` is updated:
|
|
483
|
-
|
|
484
|
-
1. you are using `validateFile` or supply filenames to other validation
|
|
485
|
-
functions.
|
|
486
|
-
2. you allow user-supplied configurations (or use them yourself) via
|
|
487
|
-
`.htmlvalidate.json` (default unless `root: true` is set in the configuration
|
|
488
|
-
object passed to `new HtmlValidate(..)`)
|
|
489
|
-
|
|
490
|
-
The `ConfigLoader` API has also been updated and `fromTarget` may now return
|
|
491
|
-
`null` if no configuration file was found.
|
|
492
|
-
|
|
493
|
-
- The `build` folder has been renamed to `dist`.
|
|
494
|
-
|
|
495
|
-
This affects API users only and in general should not be an issue unless
|
|
496
|
-
importing files via full path. In that case replace `import 'html-validate/build/...'` with `import 'html-validate/dist/...` but in general
|
|
497
|
-
those imports are discouraged.
|
|
498
|
-
|
|
499
|
-
Instead users should import only via `import { ... } from "html-validate"` and file an issue
|
|
500
|
-
if an export is missing.
|
|
501
|
-
|
|
502
|
-
This does not affect the `elements` imports which is considered a safe to import
|
|
503
|
-
as-is.
|
|
504
|
-
|
|
505
|
-
- Only node 10 or later is supported
|
|
506
|
-
|
|
507
|
-
### Features
|
|
508
|
-
|
|
509
|
-
- new utility function `ruleExists` to test presence of bundled rules ([09aad04](https://gitlab.com/html-validate/html-validate/commit/09aad040f201f91bdf47a4b0cf8e79ee05b9ff9c))
|
|
510
|
-
- **rules:** new helper `isHTMLHidden` ([ae20335](https://gitlab.com/html-validate/html-validate/commit/ae20335fbe45f368ef29844ce23541d41387899f))
|
|
511
|
-
- **shim:** add new export `html-validate/test-utils` exposing test-utils ([30f5d40](https://gitlab.com/html-validate/html-validate/commit/30f5d40379273c36871a487a55d83eb641fde037))
|
|
512
|
-
- **shim:** expose all event structures in shim ([294bb0d](https://gitlab.com/html-validate/html-validate/commit/294bb0d9ac40034d9863195d15fbdf9afa1e4d20))
|
|
513
|
-
- **shim:** expose metadata structures ([271e521](https://gitlab.com/html-validate/html-validate/commit/271e521795e47d539ac3cab73be7091269845cd6))
|
|
514
|
-
|
|
515
|
-
### Bug Fixes
|
|
516
|
-
|
|
517
|
-
- **config:** dont automatically apply `extends: ["html-validate:recommended"]` ([fcad0b2](https://gitlab.com/html-validate/html-validate/commit/fcad0b2a71bb007237058039eb907d8623e9188c)), closes [#98](https://gitlab.com/html-validate/html-validate/issues/98)
|
|
518
|
-
- require node 10 ([d1a48b1](https://gitlab.com/html-validate/html-validate/commit/d1a48b18353d5888bc25a133377aef622f926282))
|
|
519
|
-
- **rules:** `input-missing-label` handles multiple labels ([a6af2da](https://gitlab.com/html-validate/html-validate/commit/a6af2da352e1ed86e7f17c2018ddd2a925a49397))
|
|
520
|
-
- **rules:** `input-missing-label` ignores hidden `<input>` ([41c39e9](https://gitlab.com/html-validate/html-validate/commit/41c39e916fdf3579ec31d6fc6f36d951e92fd497))
|
|
521
|
-
- **rules:** `input-missing-label` requires label to be non-hidden ([ff5e855](https://gitlab.com/html-validate/html-validate/commit/ff5e8559c7ee3039d0ef515f5ed45bcd0c3b8724)), closes [#99](https://gitlab.com/html-validate/html-validate/issues/99)
|
|
522
|
-
|
|
523
|
-
### Miscellaneous Chores
|
|
524
|
-
|
|
525
|
-
- migrate to `dist` folder ([3c6787c](https://gitlab.com/html-validate/html-validate/commit/3c6787c27e0c4e68c8c33318df06065ce408aefa))
|
|
526
|
-
|
|
527
|
-
# [3.5.0](https://gitlab.com/html-validate/html-validate/compare/v3.4.1...v3.5.0) (2020-10-18)
|
|
528
|
-
|
|
529
|
-
### Features
|
|
530
|
-
|
|
531
|
-
- **rules:** new rule `no-multiple-main` ([fa3c065](https://gitlab.com/html-validate/html-validate/commit/fa3c065f2968829bafd0c20ae52158d725be27ca))
|
|
532
|
-
|
|
533
|
-
## [3.4.1](https://gitlab.com/html-validate/html-validate/compare/v3.4.0...v3.4.1) (2020-10-13)
|
|
534
|
-
|
|
535
|
-
### Bug Fixes
|
|
536
|
-
|
|
537
|
-
- **rules:** ignore links hidden from accessibility tree - fixes [#97](https://gitlab.com/html-validate/html-validate/issues/97) ([064514b](https://gitlab.com/html-validate/html-validate/commit/064514b83efbbe1a42fdad719d57af7f1b8106ef))
|
|
538
|
-
|
|
539
|
-
# [3.4.0](https://gitlab.com/html-validate/html-validate/compare/v3.3.0...v3.4.0) (2020-10-08)
|
|
540
|
-
|
|
541
|
-
### Bug Fixes
|
|
542
|
-
|
|
543
|
-
- **deps:** update dependency acorn-walk to v8 ([5a41662](https://gitlab.com/html-validate/html-validate/commit/5a41662b6800a8400d493364d35db385300801a9))
|
|
544
|
-
- **rules:** fix issue in `no-dup-id` where value is dynamic ([203debe](https://gitlab.com/html-validate/html-validate/commit/203debef4c942f2ef8ab98848453a7fc3c534066)), closes [#96](https://gitlab.com/html-validate/html-validate/issues/96)
|
|
545
|
-
|
|
546
|
-
### Features
|
|
547
|
-
|
|
548
|
-
- **api:** add additional prototypes to `validateString` ([69e8102](https://gitlab.com/html-validate/html-validate/commit/69e81024ed6a077e92d32f79791e6b47e0ad0364))
|
|
549
|
-
- **dom:** new api for caching data on `DOMNode` ([13d99e4](https://gitlab.com/html-validate/html-validate/commit/13d99e4973a84109c9069fbe1718a33a302325d1))
|
|
550
|
-
- **rules:** implement caching in some helper methods ([5746d6c](https://gitlab.com/html-validate/html-validate/commit/5746d6cf37c6ca82bb5d3543f67b33341db0fdc5))
|
|
551
|
-
|
|
552
|
-
# [3.3.0](https://gitlab.com/html-validate/html-validate/compare/v3.2.0...v3.3.0) (2020-09-08)
|
|
553
|
-
|
|
554
|
-
### Bug Fixes
|
|
555
|
-
|
|
556
|
-
- **jest:** add missing `filename` to typescript declaration ([4be48fa](https://gitlab.com/html-validate/html-validate/commit/4be48fa1323f28719bf3909643eec91c9ed455eb))
|
|
557
|
-
- **meta:** default to pass when testing excluded category from unknown element ([07afa1a](https://gitlab.com/html-validate/html-validate/commit/07afa1aa7cb5f302b9caca74b923a5342c4a330c))
|
|
558
|
-
- **rules:** handle unknown elements better in `element-permitted-content` ([58ba1aa](https://gitlab.com/html-validate/html-validate/commit/58ba1aa4a7fcbee7743db10c27b6429420c07f8e)), closes [#95](https://gitlab.com/html-validate/html-validate/issues/95)
|
|
559
|
-
|
|
560
|
-
### Features
|
|
561
|
-
|
|
562
|
-
- **jest:** `toHTMLValidate()` supports passing expected errors ([7b3c30e](https://gitlab.com/html-validate/html-validate/commit/7b3c30e622130e93c4bc03e6455f94d85e746b84))
|
|
563
|
-
|
|
564
|
-
# [3.2.0](https://gitlab.com/html-validate/html-validate/compare/v3.1.0...v3.2.0) (2020-08-26)
|
|
565
|
-
|
|
566
|
-
### Features
|
|
567
|
-
|
|
568
|
-
- **rules:** new rule allowed-links ([d876206](https://gitlab.com/html-validate/html-validate/commit/d8762060c6a8b5b2f6a67cbbffd229b8232a7dfa))
|
|
569
|
-
|
|
570
|
-
# [3.1.0](https://gitlab.com/html-validate/html-validate/compare/v3.0.0...v3.1.0) (2020-08-20)
|
|
571
|
-
|
|
572
|
-
### Bug Fixes
|
|
573
|
-
|
|
574
|
-
- **rules:** `no-redundant-for` should only target `<label>` ([a2395b6](https://gitlab.com/html-validate/html-validate/commit/a2395b6d75c6aefba9c44b38dcecb72cad4d0110))
|
|
575
|
-
|
|
576
|
-
### Features
|
|
577
|
-
|
|
578
|
-
- **meta:** new property `labelable` ([bf5cd6e](https://gitlab.com/html-validate/html-validate/commit/bf5cd6ef422036d9c0d4e6d8b677d218fb0f014d))
|
|
579
|
-
- **rules:** new rule `multiple-labeled-controls` ([ee28774](https://gitlab.com/html-validate/html-validate/commit/ee287745fa75a2ab8cb6a4362c99e95bd59aaac6)), closes [#86](https://gitlab.com/html-validate/html-validate/issues/86)
|
|
580
|
-
- **rules:** new rule `no-redundant-for` ([d4445bb](https://gitlab.com/html-validate/html-validate/commit/d4445bb1453408afddf10113acf1db89afd30f7b)), closes [#87](https://gitlab.com/html-validate/html-validate/issues/87)
|
|
581
|
-
|
|
582
|
-
# [3.0.0](https://gitlab.com/html-validate/html-validate/compare/v2.23.1...v3.0.0) (2020-06-21)
|
|
583
|
-
|
|
584
|
-
### Bug Fixes
|
|
585
|
-
|
|
586
|
-
- **deps:** update dependency chalk to v4 ([614da1b](https://gitlab.com/html-validate/html-validate/commit/614da1b060409cddca0bad8435fb2c2385415e5a))
|
|
587
|
-
- **deps:** update dependency eslint to v7 ([186be9b](https://gitlab.com/html-validate/html-validate/commit/186be9baa65e61b51c4d76ef8fbfae9bb4be8c79))
|
|
588
|
-
- **deps:** update dependency espree to v7 ([863cd0f](https://gitlab.com/html-validate/html-validate/commit/863cd0f595535721498848d9ce433cf8fedd4e3a))
|
|
589
|
-
|
|
590
|
-
### chore
|
|
591
|
-
|
|
592
|
-
- drop node 8 support ([b0a6731](https://gitlab.com/html-validate/html-validate/commit/b0a673101ca2c49877f71bfc0600cb651e7a505f))
|
|
593
|
-
|
|
594
|
-
### BREAKING CHANGES
|
|
595
|
-
|
|
596
|
-
- Node 8 support has been removed.
|
|
597
|
-
|
|
598
|
-
## [2.23.1](https://gitlab.com/html-validate/html-validate/compare/v2.23.0...v2.23.1) (2020-06-21)
|
|
599
|
-
|
|
600
|
-
### Bug Fixes
|
|
601
|
-
|
|
602
|
-
- **rules:** `no-trailing-whitespace` handles CRLF (windows) newlines ([2aaddc2](https://gitlab.com/html-validate/html-validate/commit/2aaddc2daaa219f16031cc105e0d396387eac07c)), closes [#93](https://gitlab.com/html-validate/html-validate/issues/93)
|
|
603
|
-
|
|
604
|
-
# [2.23.0](https://gitlab.com/html-validate/html-validate/compare/v2.22.0...v2.23.0) (2020-05-18)
|
|
605
|
-
|
|
606
|
-
### Bug Fixes
|
|
607
|
-
|
|
608
|
-
- **cli:** `expandFiles` path normalization for windows ([b902853](https://gitlab.com/html-validate/html-validate/commit/b902853e696a04202959ae6c4cf086bd48911e4d))
|
|
609
|
-
|
|
610
|
-
### Features
|
|
611
|
-
|
|
612
|
-
- **config:** add two new config presets `html-validate:standard` and `html-validate:a17y` ([36bf9ec](https://gitlab.com/html-validate/html-validate/commit/36bf9ec3be7356d534d352d00610d8253885de22)), closes [#90](https://gitlab.com/html-validate/html-validate/issues/90)
|
|
613
|
-
- **rules:** add `include` and `exclude` options to `prefer-button` ([b046dc5](https://gitlab.com/html-validate/html-validate/commit/b046dc5943a4bd05dff9766ea6b9c9f522c09d1a)), closes [#90](https://gitlab.com/html-validate/html-validate/issues/90)
|
|
614
|
-
- **rules:** add `isKeywordExtended` method for rule authors ([ca7e835](https://gitlab.com/html-validate/html-validate/commit/ca7e835d384c7ed43967bec14f56836353a0b1f6))
|
|
615
|
-
|
|
616
|
-
# [2.22.0](https://gitlab.com/html-validate/html-validate/compare/v2.21.0...v2.22.0) (2020-05-15)
|
|
617
|
-
|
|
618
|
-
### Bug Fixes
|
|
619
|
-
|
|
620
|
-
- **elements:** add `<details>` and `<summary>` elements ([47ba673](https://gitlab.com/html-validate/html-validate/commit/47ba6739951a37bdb285400d392ff27ec57ff89e)), closes [#89](https://gitlab.com/html-validate/html-validate/issues/89)
|
|
621
|
-
- `<legend>` should allow heading elements ([73e150f](https://gitlab.com/html-validate/html-validate/commit/73e150f13a8b797458dac4fcbe3a22997422f4d9))
|
|
622
|
-
- **deps:** update dependency json-merge-patch to v1 ([e9f83d2](https://gitlab.com/html-validate/html-validate/commit/e9f83d2047aed16e81fe006795c9b30111478534))
|
|
623
|
-
|
|
624
|
-
### Features
|
|
625
|
-
|
|
626
|
-
- **rules:** new rule `no-autoplay` ([9ed5474](https://gitlab.com/html-validate/html-validate/commit/9ed5474493eedebd2db5c673060538d244b69f63)), closes [#84](https://gitlab.com/html-validate/html-validate/issues/84)
|
|
627
|
-
|
|
628
|
-
# [2.21.0](https://gitlab.com/html-validate/html-validate/compare/v2.20.1...v2.21.0) (2020-04-26)
|
|
629
|
-
|
|
630
|
-
### Bug Fixes
|
|
631
|
-
|
|
632
|
-
- **meta:** throw schema validation error when element metadata does not validate ([6ecf050](https://gitlab.com/html-validate/html-validate/commit/6ecf0501f3f8284c9248ac5fd0643d1c32049333)), closes [#81](https://gitlab.com/html-validate/html-validate/issues/81)
|
|
633
|
-
- **schema:** allow `permittedContent` and `permittedDescendants` to use AND-syntax ([2fa742c](https://gitlab.com/html-validate/html-validate/commit/2fa742c03b84145d0fa334809ff1f98f80cfc263)), closes [#82](https://gitlab.com/html-validate/html-validate/issues/82)
|
|
634
|
-
- **transform:** expose `computeOffset` ([d033538](https://gitlab.com/html-validate/html-validate/commit/d033538c58ff921026fc3a025e679c8b8f2e144e))
|
|
635
|
-
|
|
636
|
-
### Features
|
|
637
|
-
|
|
638
|
-
- **dom:** `DOMTokenList` can extract location data for each token ([4f4dfe0](https://gitlab.com/html-validate/html-validate/commit/4f4dfe05ccdb93c8ba27754e8ae9785fc91508eb)), closes [#74](https://gitlab.com/html-validate/html-validate/issues/74)
|
|
639
|
-
- **rules:** add `include` and `exclude` options to `no-inline-style` ([6604e88](https://gitlab.com/html-validate/html-validate/commit/6604e88e96d59c67d596b92be760b1ba5a971589)), closes [html-validate/html-validate-angular#3](https://gitlab.com/html-validate/html-validate-angular/issues/3)
|
|
640
|
-
- **rules:** use more precise location from `DOMTokenList` ([e874784](https://gitlab.com/html-validate/html-validate/commit/e874784858badb3a448cc739189cdac5ef577efe))
|
|
641
|
-
|
|
642
|
-
## [2.20.1](https://gitlab.com/html-validate/html-validate/compare/v2.20.0...v2.20.1) (2020-04-19)
|
|
643
|
-
|
|
644
|
-
### Bug Fixes
|
|
645
|
-
|
|
646
|
-
- handle loading js-files via `extends` again ([e29987f](https://gitlab.com/html-validate/html-validate/commit/e29987f213a1f295751c285c582209047c68bc2b))
|
|
647
|
-
|
|
648
|
-
# [2.20.0](https://gitlab.com/html-validate/html-validate/compare/v2.19.0...v2.20.0) (2020-04-05)
|
|
649
|
-
|
|
650
|
-
### Bug Fixes
|
|
651
|
-
|
|
652
|
-
- **meta:** add missing null return type to MetaTable.getMetaFor ([44eac5b](https://gitlab.com/html-validate/html-validate/commit/44eac5b4efffdd0bcf6973364b595501eabe9b25))
|
|
653
|
-
- allow loading elements from js-file again ([5569a94](https://gitlab.com/html-validate/html-validate/commit/5569a9428cef8ca168d79a2e75be851e141838e8))
|
|
654
|
-
- make `ast` property private ([cb1a2c8](https://gitlab.com/html-validate/html-validate/commit/cb1a2c867583616819488102a3a46431821615a6))
|
|
655
|
-
|
|
656
|
-
### Features
|
|
657
|
-
|
|
658
|
-
- support loading custom formatters ([0b02a31](https://gitlab.com/html-validate/html-validate/commit/0b02a31c4f34cca840c9ada60e76634976461f38))
|
|
659
|
-
- **formatters:** use factory to load formatters to make it more webpack-friendly ([81bef6e](https://gitlab.com/html-validate/html-validate/commit/81bef6e79287884ee2a6c804cefe136e222c1b78))
|
|
660
|
-
|
|
661
|
-
# [2.19.0](https://gitlab.com/html-validate/html-validate/compare/v2.18.1...v2.19.0) (2020-03-24)
|
|
662
|
-
|
|
663
|
-
### Bug Fixes
|
|
664
|
-
|
|
665
|
-
- **meta:** deep merge during inheritance ([85c377d](https://gitlab.com/html-validate/html-validate/commit/85c377d185492407d72fde39bd14d6a80935a56a)), closes [#72](https://gitlab.com/html-validate/html-validate/issues/72)
|
|
666
|
-
|
|
667
|
-
### Features
|
|
668
|
-
|
|
669
|
-
- **meta:** implicit inheritance when overriding existing element ([8833a0f](https://gitlab.com/html-validate/html-validate/commit/8833a0fcc9873eee4938619cdae78afa45e48ce5))
|
|
670
|
-
|
|
671
|
-
## [2.18.1](https://gitlab.com/html-validate/html-validate/compare/v2.18.0...v2.18.1) (2020-03-22)
|
|
672
|
-
|
|
673
|
-
### Bug Fixes
|
|
674
|
-
|
|
675
|
-
- **meta:** allow regexp literal in element schema ([444a472](https://gitlab.com/html-validate/html-validate/commit/444a4726f7b8693188ad80c725f57f0e33844ca7)), closes [#70](https://gitlab.com/html-validate/html-validate/issues/70)
|
|
676
|
-
- **meta:** make all meta properties optional in type declaration ([eac5052](https://gitlab.com/html-validate/html-validate/commit/eac505234e2bdac2fb6d19ba8ef81bd947a7bba9))
|
|
677
|
-
- **meta:** support case-insensitive regexp flag ([96e7343](https://gitlab.com/html-validate/html-validate/commit/96e734396f9ee90358a4b74e091f14387eda9c99)), closes [#69](https://gitlab.com/html-validate/html-validate/issues/69)
|
|
678
|
-
- **rules:** use original wcag rule names ([1d5aa3c](https://gitlab.com/html-validate/html-validate/commit/1d5aa3c83add6b51bf062508cbaf9a868572446f))
|
|
679
|
-
|
|
680
|
-
### Reverts
|
|
681
|
-
|
|
682
|
-
- Revert "ci: temporary add debug to troubleshoot @semantic-release/gitlab" ([b4d016b](https://gitlab.com/html-validate/html-validate/commit/b4d016b442e618b38b5140de17d59b6393956ded))
|
|
683
|
-
|
|
684
|
-
# [2.18.0](https://gitlab.com/html-validate/html-validate/compare/v2.17.1...v2.18.0) (2020-03-11)
|
|
685
|
-
|
|
686
|
-
### Bug Fixes
|
|
687
|
-
|
|
688
|
-
- validate `input[list]` ([9c70db2](https://gitlab.com/html-validate/html-validate/commit/9c70db243aa3fa0c9243bc6fd6a206bac28a5873))
|
|
689
|
-
- **rules:** `no-dup-id` handles when id is set but omitted value ([5f678a5](https://gitlab.com/html-validate/html-validate/commit/5f678a566c006d50b90fee23d140b5f49784b0e0))
|
|
690
|
-
- **rules:** `no-missing-references` ignores omitted references ([b8863cd](https://gitlab.com/html-validate/html-validate/commit/b8863cd8ebd8c5c05e97ef9e5e662f406aa1cb92))
|
|
691
|
-
- **rules:** add contextual documentation for `deprecated` ([7fbf433](https://gitlab.com/html-validate/html-validate/commit/7fbf433f9ce70ce34759448936d40c7dd96f55ae))
|
|
692
|
-
- **rules:** add contextual documentation for `element-name` ([2a98bad](https://gitlab.com/html-validate/html-validate/commit/2a98bada16a15c802a3e050e9274153237e916fd))
|
|
693
|
-
- **rules:** better and more contextual messages for `deprecated` ([3602be7](https://gitlab.com/html-validate/html-validate/commit/3602be730dd2ec54e1de702171ce606e4043c02a))
|
|
694
|
-
- **rules:** contextual documentation for `deprecated-rule` ([8b10601](https://gitlab.com/html-validate/html-validate/commit/8b10601405f74ddbe62a6d666153dece1b3ad9a4))
|
|
695
|
-
- **rules:** improve documentation for `doctype-html` ([1a896a8](https://gitlab.com/html-validate/html-validate/commit/1a896a87f8e7c253e4d21faf01aae6f52df754f8))
|
|
696
|
-
- **shim:** expose `ConfigError` and `UserError` ([2d002c7](https://gitlab.com/html-validate/html-validate/commit/2d002c79f1f6f088c1792de768ba80777629b739))
|
|
697
|
-
- **transform:** ignore non-string values in `TemplateExtractor` ([7f27c8b](https://gitlab.com/html-validate/html-validate/commit/7f27c8b6b0ff4f4afd85501b0b554886742b5c6f))
|
|
698
|
-
- allow both null and empty string when attribute allows empty values ([5b6991b](https://gitlab.com/html-validate/html-validate/commit/5b6991b6ea7d8b4418168b1f9d0f8bef7cac935e))
|
|
699
|
-
|
|
700
|
-
### Features
|
|
701
|
-
|
|
702
|
-
- `attribute-allowed-values` handle omitted values ([962d079](https://gitlab.com/html-validate/html-validate/commit/962d0791dae6ad4fed663909556c480f5789cd81))
|
|
703
|
-
- new rule `attribute-empty-style` ([a328b55](https://gitlab.com/html-validate/html-validate/commit/a328b558adced37c05b76dddd6cf6f83d36fe72d))
|
|
704
|
-
|
|
705
|
-
## [2.17.1](https://gitlab.com/html-validate/html-validate/compare/v2.17.0...v2.17.1) (2020-03-02)
|
|
706
|
-
|
|
707
|
-
### Bug Fixes
|
|
708
|
-
|
|
709
|
-
- disable `void-style` when using `toHTMLValidate` matcher ([4d6bb3d](https://gitlab.com/html-validate/html-validate/commit/4d6bb3d7fe8f0e174082eb3c39d7f6dcd9109f56))
|
|
710
|
-
|
|
711
|
-
# [2.17.0](https://gitlab.com/html-validate/html-validate/compare/v2.16.0...v2.17.0) (2020-02-17)
|
|
712
|
-
|
|
713
|
-
### Bug Fixes
|
|
714
|
-
|
|
715
|
-
- **elements:** `<img>` `srcset` attribute cannot be empty ([27699ad](https://gitlab.com/html-validate/html-validate/commit/27699ad08d4f9363b275449df3110f36f1b0ee9d))
|
|
716
|
-
- **jest:** typescript compatibility with jest@23 ([4efae54](https://gitlab.com/html-validate/html-validate/commit/4efae544dbe9cd499e352776edbde1ea03d83706))
|
|
717
|
-
- **rules:** add `aria-label` helper ([6d5d963](https://gitlab.com/html-validate/html-validate/commit/6d5d9630666bec57e70ea3ce563cbef558e2ab3b))
|
|
718
|
-
- **rules:** fix `deprecated-rule` missing location ([1156c1e](https://gitlab.com/html-validate/html-validate/commit/1156c1e8b6153ee8ac5691df8f3fdeddfb896255))
|
|
719
|
-
- change config merge order in `toHTMLValidate` ([204a8fa](https://gitlab.com/html-validate/html-validate/commit/204a8faac7cfe34b8e0fe2b834124b2b9502e231))
|
|
720
|
-
- **rules:** handle `aria-label` on links for WCAG H30 ([eb01542](https://gitlab.com/html-validate/html-validate/commit/eb01542abb0fbf4104672794e621b6bf5564903c)), closes [#67](https://gitlab.com/html-validate/html-validate/issues/67)
|
|
721
|
-
|
|
722
|
-
### Features
|
|
723
|
-
|
|
724
|
-
- **rules:** mark `void` as deprecated ([f6afc0f](https://gitlab.com/html-validate/html-validate/commit/f6afc0fd15877695b735754d0eca6dc013252abc)), closes [#58](https://gitlab.com/html-validate/html-validate/issues/58)
|
|
725
|
-
- **rules:** new rule `no-self-closing` ([d9c869b](https://gitlab.com/html-validate/html-validate/commit/d9c869b36e3c5c9c4027809417b535bcd565c5cc)), closes [#58](https://gitlab.com/html-validate/html-validate/issues/58)
|
|
726
|
-
- **rules:** new rule `script-element` ([48ad6da](https://gitlab.com/html-validate/html-validate/commit/48ad6da1b965d0299d022dbc27c25ebc0ed3ffc8))
|
|
727
|
-
- **rules:** new rule `script-type` ([a680f1d](https://gitlab.com/html-validate/html-validate/commit/a680f1d297100c92f08f5d5de2ac39ee27915c15))
|
|
728
|
-
- **rules:** new rule `void-content` ([c93c63b](https://gitlab.com/html-validate/html-validate/commit/c93c63b1a3609d90cc493a6cb448b071905926f0)), closes [#58](https://gitlab.com/html-validate/html-validate/issues/58)
|
|
729
|
-
- **rules:** new rule `void-style` ([f30de03](https://gitlab.com/html-validate/html-validate/commit/f30de03ea4f8caaf065047d5e3bd44417d0202ad)), closes [#58](https://gitlab.com/html-validate/html-validate/issues/58)
|
|
730
|
-
- allow configuration override when using `validate{String,Source}` ([6e62852](https://gitlab.com/html-validate/html-validate/commit/6e62852c88182defbe9b465ab5652f456310d07e))
|
|
731
|
-
|
|
732
|
-
# [2.16.0](https://gitlab.com/html-validate/html-validate/compare/v2.15.0...v2.16.0) (2020-02-12)
|
|
733
|
-
|
|
734
|
-
### Bug Fixes
|
|
735
|
-
|
|
736
|
-
- **cli:** fix typo when using `--init` with vuejs ([6eee478](https://gitlab.com/html-validate/html-validate/commit/6eee47872e164b16e4152f309ab5971019222ff9))
|
|
737
|
-
- **dom:** `querySelector` and friends return empty when selector is empty ([6a871de](https://gitlab.com/html-validate/html-validate/commit/6a871de7bb240507693d266b37c6e4f9228b7e5e))
|
|
738
|
-
- **schema:** add title and description to most properties ([a7cea78](https://gitlab.com/html-validate/html-validate/commit/a7cea78ed39643e5808cfd08243f492a235200e7))
|
|
739
|
-
- **schema:** handle `$schema` in config and elements ([a4f9054](https://gitlab.com/html-validate/html-validate/commit/a4f90541c74070f30d033827789336ad27063b3a))
|
|
740
|
-
- add missing `jest.js` and `jest.d.ts` ([8b767c2](https://gitlab.com/html-validate/html-validate/commit/8b767c2032297b8534c7feac98414fc4d90c5bd2))
|
|
741
|
-
|
|
742
|
-
### Features
|
|
743
|
-
|
|
744
|
-
- add import `html-validate/jest` as a shortcut to the jest matchers ([4ccf6ed](https://gitlab.com/html-validate/html-validate/commit/4ccf6ed6b1da47d44bb256db4156edbdbb1ddf4e))
|
|
745
|
-
- expose `NodeClosed`, `TextNode`, `Plugin` and `Parser` ([f344527](https://gitlab.com/html-validate/html-validate/commit/f3445274d4e713e2c851bd524ebb429da9408abb))
|
|
746
|
-
|
|
747
|
-
# [2.15.0](https://gitlab.com/html-validate/html-validate/compare/v2.14.0...v2.15.0) (2020-02-09)
|
|
748
|
-
|
|
749
|
-
### Features
|
|
750
|
-
|
|
751
|
-
- **plugin:** load `default` transformer if loading named transformer without name ([efb0eb9](https://gitlab.com/html-validate/html-validate/commit/efb0eb9de250ad80f812bd2a0d6bd6c96d21a41a))
|
|
752
|
-
|
|
753
|
-
# [2.14.0](https://gitlab.com/html-validate/html-validate/compare/v2.13.0...v2.14.0) (2020-02-06)
|
|
754
|
-
|
|
755
|
-
### Features
|
|
756
|
-
|
|
757
|
-
- **elements:** make `<legend>` in `<fieldset>` optional (covered by new h71 rule instead) ([f3a59b9](https://gitlab.com/html-validate/html-validate/commit/f3a59b917addb05e920b30e7ce32c1be375157e2))
|
|
758
|
-
- **rules:** new method `getTagsDerivedFrom` to get tag and tags inheriting from it ([0118738](https://gitlab.com/html-validate/html-validate/commit/011873818a5e8997887547895a5be519baa589b0))
|
|
759
|
-
- **rules:** new rule `wcag/h71` requiring `<fieldset>` to have `<legend>` ([1b8ceab](https://gitlab.com/html-validate/html-validate/commit/1b8ceab724e9bb886b6b9d08a1c7563163786ad9))
|
|
760
|
-
|
|
761
|
-
# [2.13.0](https://gitlab.com/html-validate/html-validate/compare/v2.12.0...v2.13.0) (2020-02-02)
|
|
762
|
-
|
|
763
|
-
### Features
|
|
764
|
-
|
|
765
|
-
- **meta:** allow plugins to add copyable metadata ([242eaa8](https://gitlab.com/html-validate/html-validate/commit/242eaa882afb71e527b07a2a92e6d45adf4f02e7))
|
|
766
|
-
|
|
767
|
-
# [2.12.0](https://gitlab.com/html-validate/html-validate/compare/v2.11.0...v2.12.0) (2020-01-27)
|
|
768
|
-
|
|
769
|
-
### Bug Fixes
|
|
770
|
-
|
|
771
|
-
- **rules:** don't report elements where the tag is already correct ([ee354a0](https://gitlab.com/html-validate/html-validate/commit/ee354a0070f4ac6657cf0a5ce84bddadb3d2dab7)), closes [#65](https://gitlab.com/html-validate/html-validate/issues/65)
|
|
772
|
-
|
|
773
|
-
### Features
|
|
774
|
-
|
|
775
|
-
- **rules:** new rule no-redundant-role ([a32b816](https://gitlab.com/html-validate/html-validate/commit/a32b81623ac4c8603923b4ff1a41c342a5dfe1d2)), closes [#65](https://gitlab.com/html-validate/html-validate/issues/65)
|
|
776
|
-
|
|
777
|
-
# [2.11.0](https://gitlab.com/html-validate/html-validate/compare/v2.10.0...v2.11.0) (2020-01-26)
|
|
778
|
-
|
|
779
|
-
### Bug Fixes
|
|
780
|
-
|
|
781
|
-
- **dom:** use case-insensitive match for `is()` ([d2687c2](https://gitlab.com/html-validate/html-validate/commit/d2687c2e90543044f2fab5480677e6883a5b82cb))
|
|
782
|
-
- **plugin:** fix rule type definition ([6f0213d](https://gitlab.com/html-validate/html-validate/commit/6f0213da6f484fea9a51572592b970a7b9a0badd))
|
|
783
|
-
|
|
784
|
-
### Features
|
|
785
|
-
|
|
786
|
-
- **dom:** add `generateSelector` ([12e718e](https://gitlab.com/html-validate/html-validate/commit/12e718ec2c18eec34b5a7f9feb317d8ab07d4a13))
|
|
787
|
-
- **dom:** new type `DOMInternalID` ([ada3cd3](https://gitlab.com/html-validate/html-validate/commit/ada3cd31bf2fb941a5ccc72fc79515341ff5ba4a))
|
|
788
|
-
- **dom:** support pseudo-classes `:first-child`, `:last-child` and `:nth-child` ([af39ea1](https://gitlab.com/html-validate/html-validate/commit/af39ea1d42e2396947b5993766c15ef17481be71))
|
|
789
|
-
- **rules:** add selector to reported errors ([6b6ae3d](https://gitlab.com/html-validate/html-validate/commit/6b6ae3da04ae67c44bfda42081de8cbe177c5579))
|
|
790
|
-
- **rules:** improved reported error location for some rules ([216b449](https://gitlab.com/html-validate/html-validate/commit/216b4499220befb13b99ad28b2f8fddb811d746f))
|
|
791
|
-
- **shim:** expose `Report` ([6091050](https://gitlab.com/html-validate/html-validate/commit/609105017e66899f30dfddae597e9dc016984403))
|
|
792
|
-
|
|
793
|
-
# [2.10.0](https://gitlab.com/html-validate/html-validate/compare/v2.9.0...v2.10.0) (2020-01-22)
|
|
794
|
-
|
|
795
|
-
### Features
|
|
796
|
-
|
|
797
|
-
- **rules:** make options type-safe ([c85342a](https://gitlab.com/html-validate/html-validate/commit/c85342a5426ddba081fed8becaf3d4d499f0b66e))
|
|
798
|
-
- **rules:** new rule `prefer-native-element` ([06c44ce](https://gitlab.com/html-validate/html-validate/commit/06c44cec1c66b518c030a31517d8cfd454c0c2d2))
|
|
799
|
-
|
|
800
|
-
# [2.9.0](https://gitlab.com/html-validate/html-validate/compare/v2.8.2...v2.9.0) (2020-01-17)
|
|
801
|
-
|
|
802
|
-
### Features
|
|
803
|
-
|
|
804
|
-
- **jest:** add `toHTMLValidate()` ([44388ea](https://gitlab.com/html-validate/html-validate/commit/44388ea0f759a33831967859386299d95b528c63))
|
|
805
|
-
- **rules:** check references from `aria-controls` ([9e9805d](https://gitlab.com/html-validate/html-validate/commit/9e9805dc0e89e92411f7845a4fedc7ade0ca8cdd))
|
|
806
|
-
|
|
807
|
-
## [2.8.2](https://gitlab.com/html-validate/html-validate/compare/v2.8.1...v2.8.2) (2020-01-09)
|
|
808
|
-
|
|
809
|
-
### Bug Fixes
|
|
810
|
-
|
|
811
|
-
- create directory only if missing ([5db6fe8](https://gitlab.com/html-validate/html-validate/commit/5db6fe8ad82ba04d691dec5aacfcba9be8aee759))
|
|
812
|
-
|
|
813
|
-
## [2.8.1](https://gitlab.com/html-validate/html-validate/compare/v2.8.0...v2.8.1) (2020-01-06)
|
|
814
|
-
|
|
815
|
-
### Bug Fixes
|
|
816
|
-
|
|
817
|
-
- **cli:** create output directory as needed ([b5569f3](https://gitlab.com/html-validate/html-validate/commit/b5569f3abd47c02348f2aa31a430e1ab31ba65a5))
|
|
818
|
-
- **meta:** load metadata with `readFile` instead of `require` ([c5de95b](https://gitlab.com/html-validate/html-validate/commit/c5de95b8a41707bd58a688f130e8beecbece077a))
|
|
819
|
-
|
|
820
|
-
# [2.8.0](https://gitlab.com/html-validate/html-validate/compare/v2.7.0...v2.8.0) (2020-01-02)
|
|
821
|
-
|
|
822
|
-
### Features
|
|
823
|
-
|
|
824
|
-
- **rule:** validate matching case for start and end tags ([288cf86](https://gitlab.com/html-validate/html-validate/commit/288cf867dc6b1fdaf899cc695bb70b35c9a720a0))
|
|
825
|
-
- **rules:** refactor `parseStyle` from `element-case` and `attr-case` ([24d8fad](https://gitlab.com/html-validate/html-validate/commit/24d8fad19ba677502e1c19f8180efea44aa9cf34))
|
|
826
|
-
- **rules:** support multiple case styles ([5a397bd](https://gitlab.com/html-validate/html-validate/commit/5a397bd9aa281710f24925bec8dcc1bc29605403)), closes [#50](https://gitlab.com/html-validate/html-validate/issues/50)
|
|
827
|
-
- **rules:** support pascalcase and camelcase for `element-case` rule ([be7d692](https://gitlab.com/html-validate/html-validate/commit/be7d692838826a0de908d6cbb2867d02c43cee66))
|
|
828
|
-
|
|
829
|
-
# [2.7.0](https://gitlab.com/html-validate/html-validate/compare/v2.6.0...v2.7.0) (2019-12-16)
|
|
830
|
-
|
|
831
|
-
### Bug Fixes
|
|
832
|
-
|
|
833
|
-
- **config:** more helpful error when user forgot to load plugin ([62bbbe5](https://gitlab.com/html-validate/html-validate/commit/62bbbe503a5674369f24cf2a7116518b64cc2146))
|
|
834
|
-
|
|
835
|
-
### Features
|
|
836
|
-
|
|
837
|
-
- **config:** configuration schema validation ([c9fe45f](https://gitlab.com/html-validate/html-validate/commit/c9fe45fe4de2c807ec9dbed8126698f2480a7135)), closes [#61](https://gitlab.com/html-validate/html-validate/issues/61)
|
|
838
|
-
- **dom:** allow plugins to modify element annotation ([979da57](https://gitlab.com/html-validate/html-validate/commit/979da571ab69f22519973e7deda7531fc2560237))
|
|
839
|
-
- **dom:** allow plugins to modify element metadata ([cbe3e78](https://gitlab.com/html-validate/html-validate/commit/cbe3e78561e38b0abcef0a7d87a0e2aa6897ccb3)), closes [#62](https://gitlab.com/html-validate/html-validate/issues/62)
|
|
840
|
-
- **elements:** make schema publicly accessible ([bcab9e4](https://gitlab.com/html-validate/html-validate/commit/bcab9e4121d80fe92cdd12da84925e07e5b98297))
|
|
841
|
-
- **rules:** use annotated name ([1895ef4](https://gitlab.com/html-validate/html-validate/commit/1895ef4311c36cca17e8c68ebd58724df082c335))
|
|
842
|
-
|
|
843
|
-
# [2.6.0](https://gitlab.com/html-validate/html-validate/compare/v2.5.0...v2.6.0) (2019-12-12)
|
|
844
|
-
|
|
845
|
-
### Bug Fixes
|
|
846
|
-
|
|
847
|
-
- **cli:** useful error message when metadata is invalid ([165da72](https://gitlab.com/html-validate/html-validate/commit/165da729ade4f64a946b83f6cd8b57a69186f51d))
|
|
848
|
-
- **elements:** allow `requiredAttributes` and others to be empty array ([244d038](https://gitlab.com/html-validate/html-validate/commit/244d0384ca62a5f73985116699690dd87e3fbea1)), closes [#59](https://gitlab.com/html-validate/html-validate/issues/59)
|
|
849
|
-
- **error:** better schema validation error ([9a5f8fe](https://gitlab.com/html-validate/html-validate/commit/9a5f8fe0a6d7fddd53e1002c028fd0218febfede))
|
|
850
|
-
|
|
851
|
-
### Features
|
|
852
|
-
|
|
853
|
-
- **lexer:** handle rudimentary template tags such as `<% .. %>` ([a0f6190](https://gitlab.com/html-validate/html-validate/commit/a0f619045642fabac73d6fff6a1d832f37fdc075))
|
|
854
|
-
|
|
855
|
-
# [2.5.0](https://gitlab.com/html-validate/html-validate/compare/v2.4.3...v2.5.0) (2019-12-09)
|
|
856
|
-
|
|
857
|
-
### Bug Fixes
|
|
858
|
-
|
|
859
|
-
- **config:** keep track of plugin original name ([9e7ea3e](https://gitlab.com/html-validate/html-validate/commit/9e7ea3e2b36cc71c5e098004bd6e1d232b413ca7))
|
|
860
|
-
- **config:** throw error is plugin is missing ([bc61a6b](https://gitlab.com/html-validate/html-validate/commit/bc61a6be2684a53c1704edc62e85a401ca08c1f0))
|
|
861
|
-
- **htmlvalidate:** more verbose output from `--dump-source` ([f0089c6](https://gitlab.com/html-validate/html-validate/commit/f0089c68e851f85f873a0b6d741d8b36520a26ee))
|
|
862
|
-
- **htmlvalidate:** prefer html-validate:recommended ([8deb03a](https://gitlab.com/html-validate/html-validate/commit/8deb03a246c38afb790aff7c01db602e121baefe))
|
|
863
|
-
|
|
864
|
-
### Features
|
|
865
|
-
|
|
866
|
-
- **htmlvalidate:** new method `canValidate` to test if a file can be validated ([f523028](https://gitlab.com/html-validate/html-validate/commit/f5230285017acf3f83838c3f36293d8f5545082d))
|
|
867
|
-
|
|
868
|
-
## [2.4.3](https://gitlab.com/html-validate/html-validate/compare/v2.4.2...v2.4.3) (2019-12-08)
|
|
869
|
-
|
|
870
|
-
### Bug Fixes
|
|
871
|
-
|
|
872
|
-
- **parser:** report parser-error when stream ends before required token ([50e1d67](https://gitlab.com/html-validate/html-validate/commit/50e1d67c5c79b44d53fe3889ee76ed9577c04865))
|
|
873
|
-
|
|
874
|
-
## [2.4.2](https://gitlab.com/html-validate/html-validate/compare/v2.4.1...v2.4.2) (2019-12-05)
|
|
875
|
-
|
|
876
|
-
### Bug Fixes
|
|
877
|
-
|
|
878
|
-
- **config:** handle exceptions from loading plugin ([3aec3f3](https://gitlab.com/html-validate/html-validate/commit/3aec3f3ff019f5e3815d4b04e66ee610469e815d)), closes [#55](https://gitlab.com/html-validate/html-validate/issues/55)
|
|
879
|
-
|
|
880
|
-
## [2.4.1](https://gitlab.com/html-validate/html-validate/compare/v2.4.0...v2.4.1) (2019-12-02)
|
|
881
|
-
|
|
882
|
-
### Bug Fixes
|
|
883
|
-
|
|
884
|
-
- **lexer:** handle missing `Source` properties (like `offset`) ([2092942](https://gitlab.com/html-validate/html-validate/commit/20929425dd69eadcc5432d11f33b53a35050b76c))
|
|
885
|
-
|
|
886
|
-
# [2.4.0](https://gitlab.com/html-validate/html-validate/compare/v2.3.0...v2.4.0) (2019-12-01)
|
|
887
|
-
|
|
888
|
-
### Bug Fixes
|
|
889
|
-
|
|
890
|
-
- **config:** `init` can now safely be called multiple times ([ed46c19](https://gitlab.com/html-validate/html-validate/commit/ed46c19ef8c3f8a01a5db51f0a879f10fde597a4))
|
|
891
|
-
- **htmlvalidate:** initialize global config if needed ([6d05747](https://gitlab.com/html-validate/html-validate/commit/6d05747de0114b72188955a8c2a11f3816dfdc6d))
|
|
892
|
-
|
|
893
|
-
### Features
|
|
894
|
-
|
|
895
|
-
- **htmlvalidate:** retain `offset` when yielding multiple sources ([fe1705e](https://gitlab.com/html-validate/html-validate/commit/fe1705e13950c0bbb281e1806432b12d3eebed1a))
|
|
896
|
-
- **transform:** add `offsetToLineColumn` helper ([1e61d00](https://gitlab.com/html-validate/html-validate/commit/1e61d001fcd29d434bd2d68a7e7d9a8a12feea5b))
|
|
897
|
-
|
|
898
|
-
# [2.3.0](https://gitlab.com/html-validate/html-validate/compare/v2.2.0...v2.3.0) (2019-11-27)
|
|
899
|
-
|
|
900
|
-
### Bug Fixes
|
|
901
|
-
|
|
902
|
-
- **config:** update `--init` config for html-validate-vue@2 ([6553ded](https://gitlab.com/html-validate/html-validate/commit/6553ded78cf8cd51c8eec9ba2ef08f8e25e84612))
|
|
903
|
-
|
|
904
|
-
### Features
|
|
905
|
-
|
|
906
|
-
- **transform:** support `hasChain` to test if a transformer is present ([e8ef4f5](https://gitlab.com/html-validate/html-validate/commit/e8ef4f5e1f89c70bad43cbf5d04f47789080ab4e))
|
|
907
|
-
|
|
908
|
-
# [2.2.0](https://gitlab.com/html-validate/html-validate/compare/v2.1.0...v2.2.0) (2019-11-23)
|
|
909
|
-
|
|
910
|
-
### Bug Fixes
|
|
911
|
-
|
|
912
|
-
- **config:** throw ConfigError when elements cannot be loaded ([62c08e7](https://gitlab.com/html-validate/html-validate/commit/62c08e7c8bf9deaa47f8b9f1afbf48dcc69bba32))
|
|
913
|
-
- **docs:** update plugin docs ([340d0ca](https://gitlab.com/html-validate/html-validate/commit/340d0ca23875331b4267a7fd0226532904ed8fda))
|
|
914
|
-
- **plugin:** make all fields optional ([a587239](https://gitlab.com/html-validate/html-validate/commit/a5872397a9a0732a4cea1901c65e024767809d4a))
|
|
915
|
-
|
|
916
|
-
### Features
|
|
917
|
-
|
|
918
|
-
- **plugin:** allow specifying name ([6554f72](https://gitlab.com/html-validate/html-validate/commit/6554f72fb11e2da59ab07774f0898b20654e2a5b))
|
|
919
|
-
|
|
920
|
-
# [2.1.0](https://gitlab.com/html-validate/html-validate/compare/v2.0.1...v2.1.0) (2019-11-21)
|
|
921
|
-
|
|
922
|
-
### Bug Fixes
|
|
923
|
-
|
|
924
|
-
- **deps:** update dependency chalk to v3 ([f84bd35](https://gitlab.com/html-validate/html-validate/commit/f84bd35b637e558cdcaf01fec9ed6ebc52d895ca))
|
|
925
|
-
- **rules:** wcag/h32 support custom form elements ([e00e1ed](https://gitlab.com/html-validate/html-validate/commit/e00e1ed30e714b679e161308daa07df80e89edde))
|
|
926
|
-
|
|
927
|
-
### Features
|
|
928
|
-
|
|
929
|
-
- **meta:** add method to query all tags with given property ([eb3c593](https://gitlab.com/html-validate/html-validate/commit/eb3c59343efa911e4e5ed22f4eb87408e3036325))
|
|
930
|
-
- **meta:** adding `form` property ([edf05b0](https://gitlab.com/html-validate/html-validate/commit/edf05b09d0600be548b4d52b79421f6d13713010))
|
|
931
|
-
- **meta:** allow inheritance ([5c7725d](https://gitlab.com/html-validate/html-validate/commit/5c7725d5d5062e3a55fd189ccd29712bd4cc26cd))
|
|
932
|
-
- **meta:** support [@form](https://gitlab.com/form) category ([66d75a8](https://gitlab.com/html-validate/html-validate/commit/66d75a86783f247c62302c431ab8ce35d22b4215))
|
|
933
|
-
|
|
934
|
-
## [2.0.1](https://gitlab.com/html-validate/html-validate/compare/v2.0.0...v2.0.1) (2019-11-19)
|
|
935
|
-
|
|
936
|
-
### Bug Fixes
|
|
937
|
-
|
|
938
|
-
- **config:** better error when loading missing transformer from plugin ([db48a01](https://gitlab.com/html-validate/html-validate/commit/db48a015888a18dc2f6a17fd8466a98d29882509))
|
|
939
|
-
- **config:** fix loading non-plugin transformer with plugin present ([c9ad080](https://gitlab.com/html-validate/html-validate/commit/c9ad08087305a4c36821a66552d4b7389fc42e86)), closes [#54](https://gitlab.com/html-validate/html-validate/issues/54)
|
|
940
|
-
|
|
941
|
-
# [2.0.0](https://gitlab.com/html-validate/html-validate/compare/v1.16.0...v2.0.0) (2019-11-17)
|
|
942
|
-
|
|
943
|
-
### Features
|
|
944
|
-
|
|
945
|
-
- **config:** transformers must now operate on `Source` ([9c2112c](https://gitlab.com/html-validate/html-validate/commit/9c2112c8fb71275434b3d212df0953a4ea467db4))
|
|
946
|
-
- **config:** wrap transformer error message better ([9f833e9](https://gitlab.com/html-validate/html-validate/commit/9f833e9d4dcc17ad32cca43a546da5f62e52dfe2))
|
|
947
|
-
- **htmlvalidate:** string sources are now transformed too ([0645e37](https://gitlab.com/html-validate/html-validate/commit/0645e3760bd8d0f168a2c1faaa3e7097aa00b330))
|
|
948
|
-
- **plugin:** support exposing transformers from plugins ([1370565](https://gitlab.com/html-validate/html-validate/commit/13705651c1b00e9dbd5cc3914b317f964391d6a8))
|
|
949
|
-
- **transform:** add context object as `this` ([cb76cb3](https://gitlab.com/html-validate/html-validate/commit/cb76cb33664ca6e3ca37772aa14a4984faf55804))
|
|
950
|
-
- **transform:** add version number to API ([94a5663](https://gitlab.com/html-validate/html-validate/commit/94a5663440c904fb0ad80dcbbab60ad73c79f741))
|
|
951
|
-
- **transform:** adding test utils ([9e42590](https://gitlab.com/html-validate/html-validate/commit/9e42590a6112a095a0d9b01eb1af98189168f25e))
|
|
952
|
-
- **transform:** support chaining transformers ([4a6fd51](https://gitlab.com/html-validate/html-validate/commit/4a6fd51620621f228aa4897abded19ce1abc7d1e))
|
|
953
|
-
- **transform:** support returning iterators ([623b2f2](https://gitlab.com/html-validate/html-validate/commit/623b2f20efdce9ee4b3f39d1cf698d412116e79b))
|
|
954
|
-
|
|
955
|
-
### BREAKING CHANGES
|
|
956
|
-
|
|
957
|
-
- **config:** Previously transformers took a filename and had to read data of
|
|
958
|
-
the file itself. Transformers will now receive a `Source` instance with the data
|
|
959
|
-
preread.
|
|
960
|
-
|
|
961
|
-
# [1.16.0](https://gitlab.com/html-validate/html-validate/compare/v1.15.0...v1.16.0) (2019-11-09)
|
|
962
|
-
|
|
963
|
-
### Bug Fixes
|
|
964
|
-
|
|
965
|
-
- **cli:** fix `--init` not creating configuration unless overwriting ([9098529](https://gitlab.com/html-validate/html-validate/commit/90985293bf941c54055c93b35a6c6f865a2f65e6))
|
|
966
|
-
- **config:** use `readFile` to prevent unintended caching ([4864bfa](https://gitlab.com/html-validate/html-validate/commit/4864bfa26edaf77b7bf7b0f551ffe7469a803c42))
|
|
967
|
-
|
|
968
|
-
### Features
|
|
969
|
-
|
|
970
|
-
- **shim:** expose version number in shim ([890d122](https://gitlab.com/html-validate/html-validate/commit/890d12269cfbfff7ce6b4e49e1876bb51ca7ccdd))
|
|
971
|
-
|
|
972
|
-
# [1.15.0](https://gitlab.com/html-validate/html-validate/compare/v1.14.1...v1.15.0) (2019-11-03)
|
|
973
|
-
|
|
974
|
-
### Bug Fixes
|
|
975
|
-
|
|
976
|
-
- **cli:** `--help` does not take an argument ([e22293f](https://gitlab.com/html-validate/html-validate/commit/e22293fc3257f6ba9732016d2be44214299e23c2))
|
|
977
|
-
|
|
978
|
-
### Features
|
|
979
|
-
|
|
980
|
-
- **cli:** add `--dump-source` to debug transformers ([4d32a0d](https://gitlab.com/html-validate/html-validate/commit/4d32a0d6fc8e3caaa62107affa94fe0fe16aab1f))
|
|
981
|
-
- **cli:** add `--init` to create initial configuration ([6852d30](https://gitlab.com/html-validate/html-validate/commit/6852d30dcbccc5ebed3267c6dd181146156646f0))
|
|
982
|
-
|
|
983
|
-
## [1.14.1](https://gitlab.com/html-validate/html-validate/compare/v1.14.0...v1.14.1) (2019-10-27)
|
|
984
|
-
|
|
985
|
-
### Bug Fixes
|
|
986
|
-
|
|
987
|
-
- input hidden should not have label ([66cf13d](https://gitlab.com/html-validate/html-validate/commit/66cf13d489cbb641fabe83121fa0f135440875f8)), closes [#53](https://gitlab.com/html-validate/html-validate/issues/53)
|
|
988
|
-
|
|
989
|
-
# [1.14.0](https://gitlab.com/html-validate/html-validate/compare/v1.13.0...v1.14.0) (2019-10-20)
|
|
990
|
-
|
|
991
|
-
### Features
|
|
992
|
-
|
|
993
|
-
- **shim:** expose more types ([86bb78d](https://gitlab.com/html-validate/html-validate/commit/86bb78d))
|
|
994
|
-
- enable typescript strict mode (excect strict null) ([5d2b45e](https://gitlab.com/html-validate/html-validate/commit/5d2b45e))
|
|
995
|
-
- **htmlvalidate:** support passing filename to `validateString` ([c2e09a2](https://gitlab.com/html-validate/html-validate/commit/c2e09a2))
|
|
996
|
-
|
|
997
|
-
# [1.13.0](https://gitlab.com/html-validate/html-validate/compare/v1.12.0...v1.13.0) (2019-10-13)
|
|
998
|
-
|
|
999
|
-
### Features
|
|
1000
|
-
|
|
1001
|
-
- **rules:** support deprecating rules ([de80d96](https://gitlab.com/html-validate/html-validate/commit/de80d96))
|
|
1002
|
-
|
|
1003
|
-
# [1.12.0](https://gitlab.com/html-validate/html-validate/compare/v1.11.0...v1.12.0) (2019-10-08)
|
|
1004
|
-
|
|
1005
|
-
### Features
|
|
1006
|
-
|
|
1007
|
-
- **cli:** new API to get validator instance ([6f4be7d](https://gitlab.com/html-validate/html-validate/commit/6f4be7d))
|
|
1008
|
-
- **cli:** support passing options to CLI class ([aa544d6](https://gitlab.com/html-validate/html-validate/commit/aa544d6))
|
|
1009
|
-
- **config:** add `root` property to stop searching file system ([9040ed5](https://gitlab.com/html-validate/html-validate/commit/9040ed5))
|
|
1010
|
-
- **shim:** expose HtmlElement in shim ([dbb673f](https://gitlab.com/html-validate/html-validate/commit/dbb673f))
|
|
1011
|
-
|
|
1012
|
-
# [1.11.0](https://gitlab.com/html-validate/html-validate/compare/v1.10.0...v1.11.0) (2019-09-23)
|
|
1013
|
-
|
|
1014
|
-
### Bug Fixes
|
|
1015
|
-
|
|
1016
|
-
- **config:** expand `<rootDir>` in elements ([eeddf4c](https://gitlab.com/html-validate/html-validate/commit/eeddf4c))
|
|
1017
|
-
|
|
1018
|
-
### Features
|
|
1019
|
-
|
|
1020
|
-
- **meta:** new property `scriptSupporting` ([c271a04](https://gitlab.com/html-validate/html-validate/commit/c271a04))
|
|
1021
|
-
|
|
1022
|
-
# [1.10.0](https://gitlab.com/html-validate/html-validate/compare/v1.9.1...v1.10.0) (2019-09-19)
|
|
1023
|
-
|
|
1024
|
-
### Features
|
|
1025
|
-
|
|
1026
|
-
- **api:** better exposure of cli api ([2c16c5b](https://gitlab.com/html-validate/html-validate/commit/2c16c5b))
|
|
1027
|
-
- **api:** new method `validateMultipleFiles` ([536be69](https://gitlab.com/html-validate/html-validate/commit/536be69))
|
|
1028
|
-
|
|
1029
|
-
## [1.9.1](https://gitlab.com/html-validate/html-validate/compare/v1.9.0...v1.9.1) (2019-09-19)
|
|
1030
|
-
|
|
1031
|
-
### Bug Fixes
|
|
1032
|
-
|
|
1033
|
-
- **rules:** fix handling of invalid void style ([4682d96](https://gitlab.com/html-validate/html-validate/commit/4682d96)), closes [#52](https://gitlab.com/html-validate/html-validate/issues/52)
|
|
1034
|
-
|
|
1035
|
-
# [1.9.0](https://gitlab.com/html-validate/html-validate/compare/v1.8.0...v1.9.0) (2019-09-17)
|
|
1036
|
-
|
|
1037
|
-
### Features
|
|
1038
|
-
|
|
1039
|
-
- **rules:** new rule `svg-focusable` ([c354364](https://gitlab.com/html-validate/html-validate/commit/c354364))
|
|
1040
|
-
|
|
1041
|
-
# [1.8.0](https://gitlab.com/html-validate/html-validate/compare/v1.7.1...v1.8.0) (2019-09-16)
|
|
1042
|
-
|
|
1043
|
-
### Bug Fixes
|
|
1044
|
-
|
|
1045
|
-
- **rules:** fix prefer-button crashing on boolean type attribute ([94ce2a8](https://gitlab.com/html-validate/html-validate/commit/94ce2a8))
|
|
1046
|
-
|
|
1047
|
-
### Features
|
|
1048
|
-
|
|
1049
|
-
- **cli:** allow specifying extensions ([2bdd75f](https://gitlab.com/html-validate/html-validate/commit/2bdd75f))
|
|
1050
|
-
- **cli:** cli learned `--version` to print version number ([95c6737](https://gitlab.com/html-validate/html-validate/commit/95c6737))
|
|
1051
|
-
- **cli:** exit early when encountering unknown cli arguments ([1381c51](https://gitlab.com/html-validate/html-validate/commit/1381c51))
|
|
1052
|
-
- **cli:** expose expandFiles function ([edab9cf](https://gitlab.com/html-validate/html-validate/commit/edab9cf))
|
|
1053
|
-
- **cli:** handle passing directories ([f152a12](https://gitlab.com/html-validate/html-validate/commit/f152a12))
|
|
1054
|
-
- **cli:** support setting cwd when calling expandFiles ([420dc88](https://gitlab.com/html-validate/html-validate/commit/420dc88))
|
|
1055
|
-
- **event:** new event config:ready ([c2990b5](https://gitlab.com/html-validate/html-validate/commit/c2990b5))
|
|
1056
|
-
|
|
1057
|
-
## [1.7.1](https://gitlab.com/html-validate/html-validate/compare/v1.7.0...v1.7.1) (2019-09-15)
|
|
1058
|
-
|
|
1059
|
-
### Bug Fixes
|
|
1060
|
-
|
|
1061
|
-
- **config:** better error message when transformer fails to load ([c5a4f38](https://gitlab.com/html-validate/html-validate/commit/c5a4f38))
|
|
1062
|
-
|
|
1063
|
-
# [1.7.0](https://gitlab.com/html-validate/html-validate/compare/v1.6.0...v1.7.0) (2019-09-11)
|
|
1064
|
-
|
|
1065
|
-
### Bug Fixes
|
|
1066
|
-
|
|
1067
|
-
- **parser:** fix conditional comments pushing elements into tree ([b26fe80](https://gitlab.com/html-validate/html-validate/commit/b26fe80)), closes [#51](https://gitlab.com/html-validate/html-validate/issues/51)
|
|
1068
|
-
- **rules:** attr-case no longer reports duplicate errors for dynamic attributes ([c06ae67](https://gitlab.com/html-validate/html-validate/commit/c06ae67)), closes [#48](https://gitlab.com/html-validate/html-validate/issues/48)
|
|
1069
|
-
|
|
1070
|
-
### Features
|
|
1071
|
-
|
|
1072
|
-
- **location:** allow sliceLocation to wrap line/column ([cbd7796](https://gitlab.com/html-validate/html-validate/commit/cbd7796))
|
|
1073
|
-
- **rules:** add PascalCase and camelCase styles for `attr-case` ([9e91f81](https://gitlab.com/html-validate/html-validate/commit/9e91f81)), closes [#49](https://gitlab.com/html-validate/html-validate/issues/49)
|
|
1074
|
-
|
|
1075
|
-
# [1.6.0](https://gitlab.com/html-validate/html-validate/compare/v1.5.1...v1.6.0) (2019-09-01)
|
|
1076
|
-
|
|
1077
|
-
### Bug Fixes
|
|
1078
|
-
|
|
1079
|
-
- **matchers:** typo in error message ([daeabba](https://gitlab.com/html-validate/html-validate/commit/daeabba))
|
|
1080
|
-
|
|
1081
|
-
### Features
|
|
1082
|
-
|
|
1083
|
-
- **matchers:** optionally test context ([44fcf47](https://gitlab.com/html-validate/html-validate/commit/44fcf47))
|
|
1084
|
-
|
|
1085
|
-
## [1.5.1](https://gitlab.com/html-validate/html-validate/compare/v1.5.0...v1.5.1) (2019-08-20)
|
|
1086
|
-
|
|
1087
|
-
### Bug Fixes
|
|
1088
|
-
|
|
1089
|
-
- **elements:** mark contextmenu attribute as deprecated ([db4069f](https://gitlab.com/html-validate/html-validate/commit/db4069f))
|
|
1090
|
-
|
|
1091
|
-
### Features
|
|
1092
|
-
|
|
1093
|
-
- **rules:** new rule no-unknown-elements ([96f5fcf](https://gitlab.com/html-validate/html-validate/commit/96f5fcf))
|
|
1094
|
-
|
|
1095
|
-
## [1.5.0](https://gitlab.com/html-validate/html-validate/compare/v1.4.0...v1.5.0) (2019-08-17)
|
|
1096
|
-
|
|
1097
|
-
### Bug Fixes
|
|
1098
|
-
|
|
1099
|
-
- **elements:** `<img>` must have non-empty src ([8916e19](https://gitlab.com/html-validate/html-validate/commit/8916e19))
|
|
1100
|
-
- **rules:** change output format of wcag/h37 and element-required-attributes to match ([26f5074](https://gitlab.com/html-validate/html-validate/commit/26f5074))
|
|
1101
|
-
|
|
1102
|
-
### Features
|
|
1103
|
-
|
|
1104
|
-
- **cli:** add --config to specify a custom configuration file ([87b565f](https://gitlab.com/html-validate/html-validate/commit/87b565f))
|
|
1105
|
-
- **elements:** `<fieldset>` requires `<legend>` ([0bce9dd](https://gitlab.com/html-validate/html-validate/commit/0bce9dd))
|
|
1106
|
-
- **elements:** `<head>` requires `<title>` ([8aaa801](https://gitlab.com/html-validate/html-validate/commit/8aaa801))
|
|
1107
|
-
- **elements:** src, href, etc attributes cannot be empty ([89c7ac6](https://gitlab.com/html-validate/html-validate/commit/89c7ac6))
|
|
1108
|
-
- **parser:** include valueLocation in doctype event ([803ddae](https://gitlab.com/html-validate/html-validate/commit/803ddae))
|
|
1109
|
-
- **rules:** new rule doctype-html ([46061a7](https://gitlab.com/html-validate/html-validate/commit/46061a7))
|
|
1110
|
-
- **rules:** new rule element-required-content ([664dead](https://gitlab.com/html-validate/html-validate/commit/664dead))
|
|
1111
|
-
- **rules:** new rule no-style-tag ([a1dff5c](https://gitlab.com/html-validate/html-validate/commit/a1dff5c))
|
|
1112
|
-
|
|
1113
|
-
## [1.4.0](https://gitlab.com/html-validate/html-validate/compare/v1.3.0...v1.4.0) (2019-08-15)
|
|
1114
|
-
|
|
1115
|
-
### Bug Fixes
|
|
1116
|
-
|
|
1117
|
-
- **deps:** update dependency acorn-walk to v7 ([1fe89e0](https://gitlab.com/html-validate/html-validate/commit/1fe89e0))
|
|
1118
|
-
- **reporter:** fix {error,warning}Count after merging reports ([bc657d0](https://gitlab.com/html-validate/html-validate/commit/bc657d0))
|
|
1119
|
-
- **reporter:** require {error,warning}Count to be present in Result ([b1306a4](https://gitlab.com/html-validate/html-validate/commit/b1306a4))
|
|
1120
|
-
|
|
1121
|
-
### Features
|
|
1122
|
-
|
|
1123
|
-
- **cli:** add new --max-warnings flag ([e78a1dc](https://gitlab.com/html-validate/html-validate/commit/e78a1dc))
|
|
1124
|
-
- **reporter:** add {error,warning}Count summary to Report object ([2bae1d0](https://gitlab.com/html-validate/html-validate/commit/2bae1d0))
|
|
1125
|
-
|
|
1126
|
-
# [1.3.0](https://gitlab.com/html-validate/html-validate/compare/v1.2.1...v1.3.0) (2019-08-12)
|
|
1127
|
-
|
|
1128
|
-
### Features
|
|
1129
|
-
|
|
1130
|
-
- **rules:** new rule no-missing-references ([4653384](https://gitlab.com/html-validate/html-validate/commit/4653384))
|
|
1131
|
-
|
|
1132
|
-
## 1.2.1 (2019-07-30)
|
|
1133
|
-
|
|
1134
|
-
- fix configuration when using multiple extends.
|
|
1135
|
-
|
|
1136
|
-
## 1.2.0 (2019-06-23)
|
|
1137
|
-
|
|
1138
|
-
- new rule `prefer-tbody` to validate presence of `<tbody>` in `<table`.
|
|
1139
|
-
- add `requiredAncestors` metadata and validation to test elements with
|
|
1140
|
-
additional requirements for the parent elements, such as `<area>` and
|
|
1141
|
-
`<dd>`/`<dt>`.
|
|
1142
|
-
- add `HtmlElement.closest()` to locate a parent matching the given selector.
|
|
1143
|
-
- add `HtmlElement.matches()` to test if a selector matches the given element.
|
|
1144
|
-
- fix so multiple combinators can be used in selectors, e.g. `foo > bar > baz`
|
|
1145
|
-
now works as expected.
|
|
1146
|
-
|
|
1147
|
-
## 1.1.2 (2019-06-18)
|
|
1148
|
-
|
|
1149
|
-
- allow div to group elements under dl (fixes #44).
|
|
1150
|
-
|
|
1151
|
-
## 1.1.1 (2019-06-07)
|
|
1152
|
-
|
|
1153
|
-
- `Reporter` is now exposed in shim.
|
|
1154
|
-
- `getFormatter` CLI API now returns output as string instead of writing
|
|
1155
|
-
directly to stdout.
|
|
1156
|
-
- `codeframe` formatter now adds final newline in output.
|
|
1157
|
-
|
|
1158
|
-
## 1.1.0 (2019-06-04)
|
|
1159
|
-
|
|
1160
|
-
- `input-missing-label` now validates `<textarea>` and `<select>`.
|
|
1161
|
-
- `querySelector` and friends now handles `[attr="keyword-with-dashes"]` and
|
|
1162
|
-
similar constructs.
|
|
1163
|
-
|
|
1164
|
-
## 1.0.0 (2019-05-12)
|
|
1165
|
-
|
|
1166
|
-
- rule `wcag/h37` now ignores images with `role="presentation` or
|
|
1167
|
-
`aria-hidden="true"`.
|
|
1168
|
-
- allow `crossorigin` attribute to be boolean or `""` (maps to `"anonymous"`).
|
|
1169
|
-
- add `<picture>` element.
|
|
1170
|
-
- mark `<style>` as foreign as to not trigger errors inside css content.
|
|
1171
|
-
- allow whitespace around attribute equals sign, e.g `class = "foo"`.
|
|
1172
|
-
|
|
1173
|
-
## 0.25.1 (2019-05-10)
|
|
1174
|
-
|
|
1175
|
-
- allow raw ampersands (`&`) in quoted attributes.
|
|
1176
|
-
- extend set of allowed characters in unquoted attributes in lexer.
|
|
1177
|
-
|
|
1178
|
-
## 0.25.0 (2019-04-23)
|
|
1179
|
-
|
|
1180
|
-
- new rule `unrecognized-char-ref` for validating character references.
|
|
1181
|
-
- add support for `auto` style for `attr-quotes` rule.
|
|
1182
|
-
- new rule `no-raw-characters` to check for presence of unescaped `<`, `>` and
|
|
1183
|
-
`&` characters.
|
|
1184
|
-
|
|
1185
|
-
## 0.24.2 (2019-03-31)
|
|
1186
|
-
|
|
1187
|
-
### Features
|
|
1188
|
-
|
|
1189
|
-
- new rule `meta-refresh`.
|
|
1190
|
-
- new event `element:ready` triggered after an element and its children has been
|
|
1191
|
-
fully constructed.
|
|
1192
|
-
- add plugin callbacks `init()` and `setup()`.
|
|
1193
|
-
- new rule `require-sri`.
|
|
1194
|
-
- add `<slot>` element.
|
|
1195
|
-
|
|
1196
|
-
## 0.24.1 (2019-03-26)
|
|
1197
|
-
|
|
1198
|
-
### Bugfixes
|
|
1199
|
-
|
|
1200
|
-
- fix broken edit links in footer.
|
|
1201
|
-
- fix broken import causing typescript API users getting build errors.
|
|
1202
|
-
|
|
1203
|
-
## 0.24.0 (2019-03-26)
|
|
1204
|
-
|
|
1205
|
-
### Features
|
|
1206
|
-
|
|
1207
|
-
- adding link to edit documentation and view rule source in documentation.
|
|
1208
|
-
- new rule `wcag/h36`.
|
|
1209
|
-
- new rule `wcag/h30`.
|
|
1210
|
-
- new rule `long-title`.
|
|
1211
|
-
- new rule `empty-title`.
|
|
1212
|
-
- add `UserError` exception which is to be used for any error which is not
|
|
1213
|
-
caused by an internal error, e.g. configuration errors or a plugin. The error
|
|
1214
|
-
suppresses the notice about internal error which should be reported as a bug.
|
|
1215
|
-
- reworked and extendable validation of elements metadata. Plugins may now add
|
|
1216
|
-
support for custom metadata.
|
|
1217
|
-
|
|
1218
|
-
### Bugfixes
|
|
1219
|
-
|
|
1220
|
-
- fix handling of plugins with no rules.
|
|
1221
|
-
|
|
1222
|
-
## 0.23.0 (2019-03-20)
|
|
1223
|
-
|
|
1224
|
-
### Features
|
|
1225
|
-
|
|
1226
|
-
- new rule `empty-heading` validating headers have textual content.
|
|
1227
|
-
- let plugins add configuration presets.
|
|
1228
|
-
- add `processElement` hook on `Source`.
|
|
1229
|
-
- add `textContent` property on `DOMNode` to get text (recursive) from child
|
|
1230
|
-
nodes. A new node type `TextNode` is added.
|
|
1231
|
-
- add `firstChild` and `lastChild` to `DOMNode`.
|
|
1232
|
-
- docs: precompile syntax highlighting for smoother page loads.
|
|
1233
|
-
- expose `Config`, `ConfigData` and `ConfigLoader` in shim.
|
|
1234
|
-
|
|
1235
|
-
## 0.22.1 (2019-02-25)
|
|
1236
|
-
|
|
1237
|
-
### Breaking change
|
|
1238
|
-
|
|
1239
|
-
- `.children` has been split and moved from `HtmlElement` to
|
|
1240
|
-
`DOMNode`. `.childNodes` replaces the original `.children` but is now typed
|
|
1241
|
-
`DOMNode[]` (and in a future release may contain other node types). A getter
|
|
1242
|
-
`.nodeElements` can be used to access only `HtmlElement` from `.childNodes`
|
|
1243
|
-
and is typed `HtmlElement[]`. If your rules use `.children` the
|
|
1244
|
-
|
|
1245
|
-
### Bugfixes
|
|
1246
|
-
|
|
1247
|
-
- `<rootDir>` is now respected when configuring plugins.
|
|
1248
|
-
- fix cosmetic case of `wcag/h37` rule.
|
|
1249
|
-
|
|
1250
|
-
## 0.22.0 (2019-02-24)
|
|
1251
|
-
|
|
1252
|
-
### Breaking changes
|
|
1253
|
-
|
|
1254
|
-
- `HtmlElement` direct access to `attr` is replaced with `attributes`. The
|
|
1255
|
-
former was an key-value object and the latter is a flattened array of
|
|
1256
|
-
`Attribute`.
|
|
1257
|
-
|
|
1258
|
-
### Features
|
|
1259
|
-
|
|
1260
|
-
- exposes `Source` and `AttributeData` in shim.
|
|
1261
|
-
- `HtmlElement` will now store duplicated (or aliased) attributes. The biggest
|
|
1262
|
-
change this introduces is that `classList` will now contain a merged list of
|
|
1263
|
-
all classes. This is needed when combining a static `class` attribute with a
|
|
1264
|
-
dynamic one.
|
|
1265
|
-
- DOM `Attribute` got two flags `isStatic` and `isDynamic` to easily tell if the
|
|
1266
|
-
value is static or dynamic.
|
|
1267
|
-
- more verbose exception when a transformer fails. (fixes #37)
|
|
1268
|
-
- allow `processAttribute` hook to yield multiple attributes, typically used
|
|
1269
|
-
when adding aliased attributes such as `:class`. By adding both the alias and
|
|
1270
|
-
the original the latter can be validated as well (e.g. `no-dup-attr` can
|
|
1271
|
-
trigger for multiple uses of `:class`). (fixes #36)
|
|
1272
|
-
- allow setting hooks when using `HtmlValidate.validateString`, makes it easier
|
|
1273
|
-
to write tests which requires hooks, e.g. processing attributes.
|
|
1274
|
-
|
|
1275
|
-
### Bugfixes
|
|
1276
|
-
|
|
1277
|
-
- `[attr]` selector now matches boolean attributes.
|
|
1278
|
-
- `attribute-boolean-style` and `no-dup-attr` now handles when dynamic
|
|
1279
|
-
attributes is used to alias other attributes, e.g `:required="foo"` no longer
|
|
1280
|
-
triggers an boolean style and `class=".."` combined with `:class=".."` no
|
|
1281
|
-
longer triggers duplicate attributes. (fixes #35)
|
|
1282
|
-
- `attribute-allowed-values` now ignores boolean attributes with dynamic
|
|
1283
|
-
values. (partially fixes #35)
|
|
1284
|
-
|
|
1285
|
-
## 0.21.0 (2019-02-17)
|
|
1286
|
-
|
|
1287
|
-
### Breaking changes
|
|
1288
|
-
|
|
1289
|
-
- `button-type` is replaced with `element-required-attributes`.
|
|
1290
|
-
|
|
1291
|
-
### Features
|
|
1292
|
-
|
|
1293
|
-
- new rule `element-required-attributes` replaces `button-type` and allows any
|
|
1294
|
-
element to contain `requiredAttributes` metadata.
|
|
1295
|
-
- support foreign elements. The body of the foreign element will be discarded
|
|
1296
|
-
from the DOM tree and not trigger any rules.
|
|
1297
|
-
- CLI write a more verbose message when unhandled exceptions are raised.
|
|
1298
|
-
- `--dump-events` output reduced by hiding element metadata and compacting
|
|
1299
|
-
location data.
|
|
1300
|
-
- use jest snapshots to test element metadata as it is more maintainable.
|
|
1301
|
-
|
|
1302
|
-
### Bugfixes
|
|
1303
|
-
|
|
1304
|
-
- allow `<area shape="default">` (fixes #31)
|
|
1305
|
-
|
|
1306
|
-
## 0.20.1 (2019-02-06)
|
|
1307
|
-
|
|
1308
|
-
### Bugfixes
|
|
1309
|
-
|
|
1310
|
-
- fix #33: ensure `wcag/h37` and `wcag/h67` checks if node exists before testing
|
|
1311
|
-
tagname.
|
|
1312
|
-
- handle boolean attributes in `attribute-allowed-values`.
|
|
1313
|
-
|
|
1314
|
-
## 0.20.0 (2019-01-29)
|
|
1315
|
-
|
|
1316
|
-
### Features
|
|
1317
|
-
|
|
1318
|
-
- update `codeframe` formatter to show not just start location but also end.
|
|
1319
|
-
|
|
1320
|
-
### Bugfixes
|
|
1321
|
-
|
|
1322
|
-
- Fixes html-validate-angular#1 by handling both regular and arrow functions.
|
|
1323
|
-
|
|
1324
|
-
## 0.19.0 (2019-01-27)
|
|
1325
|
-
|
|
1326
|
-
### Breaking changes
|
|
1327
|
-
|
|
1328
|
-
- `img-req-alt` has been renamed `wcag/h37`.
|
|
1329
|
-
|
|
1330
|
-
### Features
|
|
1331
|
-
|
|
1332
|
-
- new rule `prefer-button`.
|
|
1333
|
-
- `Attribute` now stores location of value.
|
|
1334
|
-
- new rules `wcag/h32` and `wcag/h67`.
|
|
1335
|
-
- move `location` and `isRootElement` to `DOMNode` and add new `nodeType`
|
|
1336
|
-
property.
|
|
1337
|
-
- add `Attribute.valueMatches` to test attribute value. Handles `DynamicValue`.
|
|
1338
|
-
- `querySelector` now handles selector lists (comma-separated selectors)
|
|
1339
|
-
|
|
1340
|
-
## 0.18.2 (2019-01-14)
|
|
1341
|
-
|
|
1342
|
-
### Bugfixes
|
|
1343
|
-
|
|
1344
|
-
- fix issue when calling `getAttributeValue` on a boolean attribute.
|
|
1345
|
-
- handle `DynamicValue` in `DOMTokenList` and `id-pattern`.
|
|
1346
|
-
|
|
1347
|
-
## 0.18.1 (2019-01-12)
|
|
1348
|
-
|
|
1349
|
-
### Features
|
|
1350
|
-
|
|
1351
|
-
- CLI learned `--print-config` to output configuration for a given file.
|
|
1352
|
-
|
|
1353
|
-
## 0.18.0 (2019-01-10)
|
|
1354
|
-
|
|
1355
|
-
### Features
|
|
1356
|
-
|
|
1357
|
-
- add support for dynamic attribute values, that is the value is marked as being
|
|
1358
|
-
set but has no known value. Rules are expected to assume the value exists and
|
|
1359
|
-
is valid. The primary usage for this is in combination with the
|
|
1360
|
-
`parseAttribute` hook, e.g `:id="..."` can yield attribute `id` with a dynamic
|
|
1361
|
-
value.
|
|
1362
|
-
- add support for transformer hooks, currently the only hook is `parseAttribute`
|
|
1363
|
-
allowing the transformer to alter the attribute before any events are emitted,
|
|
1364
|
-
e.g. it can pick up the vuejs `:id` attribute and pass it as `id` to allow
|
|
1365
|
-
other rules to continue just as if `id` was typed.
|
|
1366
|
-
|
|
1367
|
-
### Bugfixes
|
|
1368
|
-
|
|
1369
|
-
- fix `ConfigLoader` tests when running on windows.
|
|
1370
|
-
|
|
1371
|
-
## 0.17.0 (2019-01-09)
|
|
1372
|
-
|
|
1373
|
-
### Breaking changes
|
|
1374
|
-
|
|
1375
|
-
- `DOMNode` has been renamed `HtmlElement` and there is instead a new base class
|
|
1376
|
-
`DOMnode` which `HtmlElement` extends from. Rules using `DOMNode` need to be
|
|
1377
|
-
changed to use `HtmlElement`.
|
|
1378
|
-
|
|
1379
|
-
### Features
|
|
1380
|
-
|
|
1381
|
-
- use [Prettier](https://prettier.io/) for formatting sources.
|
|
1382
|
-
- add `HtmlValidate.getRuleDocumentation()` API for IDEs to fetch contextual
|
|
1383
|
-
rule documentation.
|
|
1384
|
-
- add `codeframe` formatter (from eslint).
|
|
1385
|
-
- add `HtmlValidate.flushConfigCache` to allow flushing the config loader cache.
|
|
1386
|
-
- add `TemplateExtractor.createSource` as a quick way to create a source from
|
|
1387
|
-
filename.
|
|
1388
|
-
- add typescript definition for `shim.js`
|
|
1389
|
-
- add `validateSource` to `HtmlValidate` allowing to manually passing a source.
|
|
1390
|
-
- `HtmlValidate.getConfigFor` is now part of public API.
|
|
1391
|
-
|
|
1392
|
-
### Bugfixes
|
|
1393
|
-
|
|
1394
|
-
- Directives can now enable/disable rules working with `dom:ready` event.
|
|
1395
|
-
- `HtmlElement` location is now shifted by 1.
|
|
1396
|
-
|
|
1397
|
-
## 0.16.1 (2018-12-16)
|
|
1398
|
-
|
|
1399
|
-
### Bugfixes
|
|
1400
|
-
|
|
1401
|
-
- `Message` now passes `size` property from `Location`
|
|
1402
|
-
|
|
1403
|
-
## 0.16.0 (2018-12-15)
|
|
1404
|
-
|
|
1405
|
-
### Features
|
|
1406
|
-
|
|
1407
|
-
- `Location` has a new property `size` holding the number of characters the
|
|
1408
|
-
location refers to.
|
|
1409
|
-
- `HtmlValidate` class now loads same default config as CLI if no configuration
|
|
1410
|
-
is passed explicitly.
|
|
1411
|
-
- `Location` has a new property `offset` holding the offset into the source
|
|
1412
|
-
data (starting at zero).
|
|
1413
|
-
- CLI learned `--stdin` and `--stdin-filename` for passing markup on standard
|
|
1414
|
-
input and explicitly naming it. Useful for external tools and IDEs which wants
|
|
1415
|
-
to pass the markup in stdin instead of a temporary file.
|
|
1416
|
-
|
|
1417
|
-
## 0.15.3 (2018-12-05)
|
|
1418
|
-
|
|
1419
|
-
### Features
|
|
1420
|
-
|
|
1421
|
-
- expose `querySelector` and `querySelectorAll` on `DOMNode`, not just
|
|
1422
|
-
`DOMTree`.
|
|
1423
|
-
|
|
1424
|
-
## 0.15.2 (2018-12-01)
|
|
1425
|
-
|
|
1426
|
-
### Features
|
|
1427
|
-
|
|
1428
|
-
- move repository to https://gitlab.com/html-validate/html-validate
|
|
1429
|
-
- move homepage to https://html-validate.org
|
|
1430
|
-
- more element attributes added.
|
|
1431
|
-
|
|
1432
|
-
## 0.15.1 (2018-11-26)
|
|
1433
|
-
|
|
1434
|
-
### Features
|
|
1435
|
-
|
|
1436
|
-
- new properties `previousSibling` and `nextSibling` on `DOMNode`.
|
|
1437
|
-
|
|
1438
|
-
## 0.15.0 (2018-11-21)
|
|
1439
|
-
|
|
1440
|
-
### Features
|
|
1441
|
-
|
|
1442
|
-
- new rule `attribute-boolean-style` to validate style of boolean attributes.
|
|
1443
|
-
- new property `nodeName` on `DOMNode`.
|
|
1444
|
-
|
|
1445
|
-
### Bugfixes
|
|
1446
|
-
|
|
1447
|
-
- `attribute-allowed-values` now normalizes boolean attributes before
|
|
1448
|
-
validating, i.e. it will accept `disabled`, `disabled=""` or
|
|
1449
|
-
`disabled="disabled"`. Fixes #13.
|
|
1450
|
-
- `input` learned `required` attribute.
|
|
1451
|
-
- `querySelector` properly handles attribute selectors with dashes and
|
|
1452
|
-
digits. Fixes #15.
|
|
1453
|
-
|
|
1454
|
-
## 0.14.2 (2018-11-06)
|
|
1455
|
-
|
|
1456
|
-
### Features
|
|
1457
|
-
|
|
1458
|
-
- bump dependencies.
|
|
1459
|
-
- use `acorn-walk` instead of `acorn@5`.
|
|
1460
|
-
|
|
1461
|
-
## 0.14.1 (2018-11-04)
|
|
1462
|
-
|
|
1463
|
-
### Bugfixes
|
|
1464
|
-
|
|
1465
|
-
- fix dependency on `acorn`, the package now properly resolves acorn 5 when
|
|
1466
|
-
dependant pulls acorn 6.
|
|
1467
|
-
|
|
1468
|
-
## 0.14.0 (2018-11-03)
|
|
1469
|
-
|
|
1470
|
-
- support global metadata.
|
|
1471
|
-
- new rule `attribute-allowed-values` validates allowed values for attributes,
|
|
1472
|
-
such as `type` for `<input>`.
|
|
1473
|
-
|
|
1474
|
-
## 0.13.0 (2018-10-21)
|
|
1475
|
-
|
|
1476
|
-
### Features
|
|
1477
|
-
|
|
1478
|
-
- `deprecated` supports adding a message for custom elements.
|
|
1479
|
-
- Rule constructors can now throw exceptions. Previously the exceptions would be
|
|
1480
|
-
silently swallowed and the rule would trigger the missing rule logic.
|
|
1481
|
-
- Support writing element metadata inline in configuration file.
|
|
1482
|
-
|
|
1483
|
-
### Bugfixes
|
|
1484
|
-
|
|
1485
|
-
- `element-permitted-order` now reports the error where the malplaced element is
|
|
1486
|
-
instead of the parent element (which holds the restriction). Fixes #10.
|
|
1487
|
-
|
|
1488
|
-
## 0.12.0 (2018-10-17)
|
|
1489
|
-
|
|
1490
|
-
### Features
|
|
1491
|
-
|
|
1492
|
-
- Support writing plugins with custom rules.
|
|
1493
|
-
- Bump dependencies, including typescript 3.0 to 3.1
|
|
1494
|
-
|
|
1495
|
-
## 0.11.1 (2018-10-07)
|
|
1496
|
-
|
|
1497
|
-
### Features
|
|
1498
|
-
|
|
1499
|
-
- Rule documentation examples are now validated automatically with htmlvalidate
|
|
1500
|
-
to provide direct feedback of how a rule will react on the given markup.
|
|
1501
|
-
|
|
1502
|
-
### Bugfixes
|
|
1503
|
-
|
|
1504
|
-
- `no-implicit-close` now provides more context when closed by a sibling.
|
|
1505
|
-
- `close-order` no longer reports error for implicitly closed elements.
|
|
1506
|
-
|
|
1507
|
-
## 0.11.0 (2018-09-23)
|
|
1508
|
-
|
|
1509
|
-
### Breaking changes
|
|
1510
|
-
|
|
1511
|
-
- For compatibility with other tools the severity `disable` has been renamed to
|
|
1512
|
-
`off`. The old name will continue to work but will be removed in the future.
|
|
1513
|
-
|
|
1514
|
-
### Features
|
|
1515
|
-
|
|
1516
|
-
- support directives to enable/disable rules inside files, e.g. to ignore a
|
|
1517
|
-
single error.
|
|
1518
|
-
- rules are now using dynamic severity which can change at runtime.
|
|
1519
|
-
- new class `Attribute` used by `DOMNode`. Attributes now holds the location
|
|
1520
|
-
they are created from making DOM attribute rules more precise.
|
|
1521
|
-
- new rule `heading-level` for validating sequential heading levels.
|
|
1522
|
-
|
|
1523
|
-
### Bugfixes
|
|
1524
|
-
|
|
1525
|
-
- `element-permitted-occurrences` no longer triggers for the first occurrence,
|
|
1526
|
-
only subsequent usages.
|
|
1527
|
-
- `Table.getMetaFor(..)` is not case-insensitive.
|
|
1528
|
-
|
|
1529
|
-
## 0.10.0 (2018-08-11)
|
|
1530
|
-
|
|
1531
|
-
### Breaking changes
|
|
1532
|
-
|
|
1533
|
-
- rule api overhaul, all rules are now classes.
|
|
1534
|
-
|
|
1535
|
-
### Features
|
|
1536
|
-
|
|
1537
|
-
- support multiple events for single listener and listener deregistration.
|
|
1538
|
-
- new `Engine` class for easier programmatical usage.
|
|
1539
|
-
- stricter types related to events
|
|
1540
|
-
- bump dependencies.
|
|
1541
|
-
|
|
1542
|
-
### Bugfixes
|
|
1543
|
-
|
|
1544
|
-
- add espree dependency
|
|
1545
|
-
|
|
1546
|
-
## 0.9.2 (2018-07-12)
|
|
1547
|
-
|
|
1548
|
-
### Features
|
|
1549
|
-
|
|
1550
|
-
- add `no-inline-style` to `htmlvalidate:recommended`.
|
|
1551
|
-
- add `htmlvalidate:document` for predefined set of document-related rules,
|
|
1552
|
-
e.g. recommended for documents but not component templates.
|
|
1553
|
-
- add `missing-doctype` rule to require doctype.
|
|
1554
|
-
- add source location to root DOMNode containing the first line and column in
|
|
1555
|
-
the source file.
|
|
1556
|
-
- add `doctype` property to `DOMTree`.
|
|
1557
|
-
- add `doctype` event, emitted when a doctype is encountered.
|
|
1558
|
-
- add `element-case` rule for validating case of element names.
|
|
1559
|
-
- add `attr-case` rule for validating case of attributes.
|
|
1560
|
-
|
|
1561
|
-
## 0.9.1 (2018-07-01)
|
|
1562
|
-
|
|
1563
|
-
### Features
|
|
1564
|
-
|
|
1565
|
-
- add `protractor-html-validate` to docs.
|
|
1566
|
-
|
|
1567
|
-
## 0.9.0 (2018-06-17)
|
|
1568
|
-
|
|
1569
|
-
### Breaking changes
|
|
1570
|
-
|
|
1571
|
-
- semantics for `require` changed from `require('html-validate')` to
|
|
1572
|
-
`require('html-validate').HtmlValidate` to support exposing other classes.
|
|
1573
|
-
|
|
1574
|
-
### Features
|
|
1575
|
-
|
|
1576
|
-
- new `TemplateExtractor` helper class for extracting templates from javascript
|
|
1577
|
-
sources.
|
|
1578
|
-
- trigger downstream projects on release
|
|
1579
|
-
|
|
1580
|
-
### Bugfixes
|
|
1581
|
-
|
|
1582
|
-
- Report `valid` now only checks for errors, the result will still be valid if
|
|
1583
|
-
only warnings are present.
|
|
1584
|
-
|
|
1585
|
-
## 0.8.3 (2018-06-12)
|
|
1586
|
-
|
|
1587
|
-
- run tests against multiple node versions (8.x, 9.x and 10.x) to ensure
|
|
1588
|
-
compatibility.
|
|
1589
|
-
- exposed `getFormatter` as a reusable function to load formatters from string
|
|
1590
|
-
(like CLI tool): `name[=DST][,name=DST...]`
|
|
1591
|
-
|
|
1592
|
-
## 0.8.2 (2018-05-28)
|
|
1593
|
-
|
|
1594
|
-
### Bugfixes
|
|
1595
|
-
|
|
1596
|
-
- lexer better handling of newlines, especially CRLF `\r\n`.
|
|
1597
|
-
|
|
1598
|
-
## 0.8.1 (2018-05-27)
|
|
1599
|
-
|
|
1600
|
-
### Misc
|
|
1601
|
-
|
|
1602
|
-
- update `package.json`
|
|
1603
|
-
|
|
1604
|
-
## 0.8.0 (2018-05-27)
|
|
1605
|
-
|
|
1606
|
-
### Features
|
|
1607
|
-
|
|
1608
|
-
- easier API usage: `require('html-validate')` now returns class without using
|
|
1609
|
-
`require(html-validate/build/htmlvalidate').default`.
|
|
1610
|
-
- support `transform` in configuration to extract source html from other files.
|
|
1611
|
-
- attach `depth` and `unique` read-only properties to `DOMNode` corresponding to
|
|
1612
|
-
the nodes depth in the DOM tree and a sequential id (unique for the session).
|
|
1613
|
-
- new rule `no-conditional-comments` to disallow usage of conditional comments.
|
|
1614
|
-
- handle conditional comments.
|
|
1615
|
-
|
|
1616
|
-
### Bugfixes
|
|
1617
|
-
|
|
1618
|
-
- handle whitespace before doctype
|
|
1619
|
-
- DOMTokenlist now handles multiple spaces as delimiter and strip
|
|
1620
|
-
leading/trailing whitespace.
|
|
1621
|
-
|
|
1622
|
-
## 0.7.0 (2017-11-04)
|
|
1623
|
-
|
|
1624
|
-
### Features
|
|
1625
|
-
|
|
1626
|
-
- new rule `no-implicit-close` to disallow usage of optional end tags.
|
|
1627
|
-
- handle optional end tags.
|
|
1628
|
-
- better result sorting, error messages are now sorted by line and column, the
|
|
1629
|
-
stage which triggered the error doesn't matter any longer.
|
|
1630
|
-
- better result merging, files will no longer be duplicated.
|
|
1631
|
-
- element metadata can no be sourced from multiple sources and be configured
|
|
1632
|
-
using the `elements` configuration property.
|
|
1633
|
-
|
|
1634
|
-
### Improvements
|
|
1635
|
-
|
|
1636
|
-
- better configuration merging
|
|
1637
|
-
|
|
1638
|
-
### Bugfixes
|
|
1639
|
-
|
|
1640
|
-
- fixed script tag incorrectly consuming markup due to greedy matching.
|
|
1641
|
-
|
|
1642
|
-
## 0.6.0 (2017-10-29)
|
|
1643
|
-
|
|
1644
|
-
### Features
|
|
1645
|
-
|
|
1646
|
-
- new rule `no-deprecated-attr` for testing if any deprecated attributes is
|
|
1647
|
-
used.
|
|
1648
|
-
- CLI supports globbing (as fallback if shell doesn't expand the glob already)
|
|
1649
|
-
|
|
1650
|
-
### Bugfixes
|
|
1651
|
-
|
|
1652
|
-
- fix lowercase `<!doctype html>` crashing the lexer.
|
|
1653
|
-
- fix node binary name in shebang
|
|
1654
|
-
- fix directory traversal on windows
|
|
1655
|
-
|
|
1656
|
-
## 0.5.0 (2017-10-17)
|
|
1657
|
-
|
|
1658
|
-
### Features
|
|
1659
|
-
|
|
1660
|
-
- Rule `element-name` learned `whitelist` and `blacklist` options.
|
|
1661
|
-
- Support outputting to multiple formatters and capturing output to file.
|
|
1662
|
-
- checkstyle formatter. Use `-f checkstyle`.
|
|
1663
|
-
|
|
1664
|
-
## 0.4.0 (2017-10-17)
|
|
1665
|
-
|
|
1666
|
-
### Features
|
|
1667
|
-
|
|
1668
|
-
- new rule `no-inline-style` disallowing inline `style` attribute.
|
|
1669
|
-
- new rule `img-req-alt` validating that images have alternative text.
|
|
1670
|
-
- new rule `element-permitted-order` validating the required order of elements
|
|
1671
|
-
with restrictions.
|
|
1672
|
-
- new rule `element-permitted-occurrences` validating elements with content
|
|
1673
|
-
models limiting the number of times child elements can be used.
|
|
1674
|
-
|
|
1675
|
-
### Bugfixes
|
|
1676
|
-
|
|
1677
|
-
- the parser now resets the DOM tree before starting, fixes issue when running
|
|
1678
|
-
the same parser instance on multiple sources.
|
|
1679
|
-
|
|
1680
|
-
## 0.3.0 (2017-10-12)
|
|
1681
|
-
|
|
1682
|
-
### Features
|
|
1683
|
-
|
|
1684
|
-
- new rules `id-pattern` and `class-pattern` for requiring a specific formats.
|
|
1685
|
-
- new rule `no-dup-class` preventing duplicate classes names on the same
|
|
1686
|
-
element.
|
|
1687
|
-
|
|
1688
|
-
### Bugfixes
|
|
1689
|
-
|
|
1690
|
-
- lexer now chokes on `<ANY\n<ANY></ANY></ANY>` (first tag missing `>`) instead
|
|
1691
|
-
of handling the inner `<ANY>` as an attribute.
|
|
1692
|
-
- `element-permitted-content` fixed issue where descending with missing metadata
|
|
1693
|
-
would report as disallowed content.
|
|
1694
|
-
|
|
1695
|
-
## 0.2.0 (2017-10-11)
|
|
1696
|
-
|
|
1697
|
-
### Features
|
|
1698
|
-
|
|
1699
|
-
- Support putting configuration in `.htmlvalidate.json` file.
|
|
1700
|
-
- `void` rule rewritten to better handle both tag omission and self-closing. It
|
|
1701
|
-
learned a new option `style` to allow a single style.
|
|
1702
|
-
- new rule `element-permitted-content` verifies that only allowed content is
|
|
1703
|
-
used.
|
|
1704
|
-
- new rule `element-name` to validate custom element names.
|
|
1705
|
-
|
|
1706
|
-
## 0.1.3 (2017-10-08)
|
|
1707
|
-
|
|
1708
|
-
### Features
|
|
1709
|
-
|
|
1710
|
-
- Rule documentation
|
|
1711
|
-
|
|
1712
|
-
### Bugfixes
|
|
1713
|
-
|
|
1714
|
-
- `no-dup-attr` now handles attribute names with different case.
|