html-validate
Advanced tools
Changelog
0.20.1 (2019-02-06)
wcag/h37
and wcag/h67
checks if node exists before testing
tagname.attribute-allowed-values
.Changelog
0.20.0 (2019-01-29)
codeframe
formatter to show not just start location but also end.Changelog
0.19.0 (2019-01-27)
img-req-alt
has been renamed wcag/h37
.prefer-button
.Attribute
now stores location of value.wcag/h32
and wcag/h67
.location
and isRootElement
to DOMNode
and add new nodeType
property.Attribute.valueMatches
to test attribute value. Handles DynamicValue
.querySelector
now handles selector lists (comma-separated selectors)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.