html-validate
Advanced tools
Changelog
0.9.0 (2018-06-17)
require
changed from require('html-validate')
to
require('html-validate').HtmlValidate
to support exposing other classes.TemplateExtractor
helper class for extracting templates from javascript
sources.valid
now only checks for errors, the result will still be valid if
only warnings are present.Changelog
0.8.3 (2018-06-12)
getFormatter
as a reusable function to load formatters from string
(like CLI tool): name[=DST][,name=DST...]
Changelog
0.8.0 (2018-05-27)
require('html-validate')
now returns class without using
require(html-validate/build/htmlvalidate').default
.transform
in configuration to extract source html from other files.depth
and unique
read-only properties to DOMNode
corresponding to
the nodes depth in the DOM tree and a sequential id (unique for the session).no-conditional-comments
to disallow usage of conditional comments.Changelog
0.7.0 (2017-11-04)
no-implicit-close
to disallow usage of optional end tags.elements
configuration property.Changelog
0.6.0 (2017-10-29)
no-deprecated-attr
for testing if any deprecated attributes is
used.<!doctype html>
crashing the lexer.Changelog
0.5.0 (2017-10-17)
element-name
learned whitelist
and blacklist
options.-f checkstyle
.Changelog
0.4.0 (2017-10-17)
no-inline-style
disallowing inline style
attribute.img-req-alt
validating that images have alternative text.element-permitted-order
validating the required order of elements
with restrictions.element-permitted-occurrences
validating elements with content
models limiting the number of times child elements can be used.Changelog
0.3.0 (2017-10-12)
id-pattern
and class-pattern
for requiring a specific formats.no-dup-class
preventing duplicate classes names on the same
element.<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.