Changelog
0.7.0 (2017-11-04)
Features
- new rule
no-implicit-close
to disallow usage of optional end tags.
- handle optional end tags.
- better result sorting, error messages are now sorted by line and column, the
stage which triggered the error doesn't matter any longer.
- better result merging, files will no longer be duplicated.
- element metadata can no be sourced from multiple sources and be configured
using the
elements
configuration property.
Improvements
- better configuration merging
Bugfixes
- fixed script tag incorrectly consuming markup due to greedy matching.
0.6.0 (2017-10-29)
Features
- new rule
no-deprecated-attr
for testing if any deprecated attributes is
used.
- CLI supports globbing (as fallback if shell doesn't expand the glob already)
Bugfixes
- fix lowercase
<!doctype html>
crashing the lexer.
- fix node binary name in shebang
- fix directory traversal on windows
0.5.0 (2017-10-17)
Features
- Rule
element-name
learned whitelist
and blacklist
options.
- Support outputting to multiple formatters and capturing output to file.
- checkstyle formatter. Use
-f checkstyle
.
0.4.0 (2017-10-17)
Features
- new rule
no-inline-style
disallowing inline style
attribute.
- new rule
img-req-alt
validating that images have alternative text.
- new rule
element-permitted-order
validating the required order of elements
with restrictions.
- new rule
element-permitted-occurrences
validating elements with content
models limiting the number of times child elements can be used.
Bugfixes
- the parser now resets the DOM tree before starting, fixes issue when running
the same parser instance on multiple sources.
0.3.0 (2017-10-12)
Features
- new rules
id-pattern
and class-pattern
for requiring a specific formats.
- new rule
no-dup-class
preventing duplicate classes names on the same
element.
Bugfixes
- lexer now chokes on
<ANY\n<ANY></ANY></ANY>
(first tag missing >
) instead
of handling the inner <ANY>
as an attribute.
element-permitted-content
fixed issue where descending with missing metadata
would report as disallowed content.
0.2.0 (2017-10-11)
Features
- Support putting configuration in
.htmlvalidate.json
file.
void
rule rewritten to better handle both tag omission and self-closing. It
learned a new option style
to allow a single style.
- new rule
element-permitted-content
verifies that only allowed content is
used.
- new rule
element-name
to validate custom element names.
0.1.3 (2017-10-08)
Features
Bugfixes
no-dup-attr
now handles attribute names with different case.