html-validate
Advanced tools
Changelog
0.18.2 (2019-01-14)
getAttributeValue
on a boolean attribute.DynamicValue
in DOMTokenList
and id-pattern
.Changelog
0.18.1 (2019-01-12)
--print-config
to output configuration for a given file.Changelog
0.18.0 (2019-01-10)
parseAttribute
hook, e.g :id="..."
can yield attribute id
with a dynamic
value.parseAttribute
allowing the transformer to alter the attribute before any events are emitted,
e.g. it can pick up the vuejs :id
attribute and pass it as id
to allow
other rules to continue just as if id
was typed.ConfigLoader
tests when running on windows.Changelog
0.17.0 (2019-01-09)
DOMNode
has been renamed HtmlElement
and there is instead a new base class
DOMnode
which HtmlElement
extends from. Rules using DOMNode
need to be
changed to use HtmlElement
.HtmlValidate.getRuleDocumentation()
API for IDEs to fetch contextual
rule documentation.codeframe
formatter (from eslint).HtmlValidate.flushConfigCache
to allow flushing the config loader cache.TemplateExtractor.createSource
as a quick way to create a source from
filename.shim.js
validateSource
to HtmlValidate
allowing to manually passing a source.HtmlValidate.getConfigFor
is now part of public API.dom:ready
event.HtmlElement
location is now shifted by 1.Changelog
0.16.0 (2018-12-15)
Location
has a new property size
holding the number of characters the
location refers to.HtmlValidate
class now loads same default config as CLI if no configuration
is passed explicitly.Location
has a new property offset
holding the offset into the source
data (starting at zero).--stdin
and --stdin-filename
for passing markup on standard
input and explicitly naming it. Useful for external tools and IDEs which wants
to pass the markup in stdin instead of a temporary file.Changelog
0.15.3 (2018-12-05)
querySelector
and querySelectorAll
on DOMNode
, not just
DOMTree
.Changelog
0.15.2 (2018-12-01)
Changelog
0.15.1 (2018-11-26)
previousSibling
and nextSibling
on DOMNode
.Changelog
0.15.0 (2018-11-21)
attribute-boolean-style
to validate style of boolean attributes.nodeName
on DOMNode
.attribute-allowed-values
now normalizes boolean attributes before
validating, i.e. it will accept disabled
, disabled=""
or
disabled="disabled"
. Fixes #13.input
learned required
attribute.querySelector
properly handles attribute selectors with dashes and
digits. Fixes #15.