html-validate
Advanced tools
Changelog
1.1.1 (2019-06-07)
Reporter
is now exposed in shim.getFormatter
CLI API now returns output as string instead of writing
directly to stdout.codeframe
formatter now adds final newline in output.Changelog
1.1.0 (2019-06-04)
input-missing-label
now validates <textarea>
and <select>
.querySelector
and friends now handles [attr="keyword-with-dashes"]
and
similar constructs.Changelog
1.0.0 (2019-05-12)
wcag/h37
now ignores images with role="presentation
or
aria-hidden="true"
.crossorigin
attribute to be boolean or ""
(maps to "anonymous"
).<picture>
element.<style>
as foreign as to not trigger errors inside css content.class = "foo"
.Changelog
0.25.1 (2019-05-10)
&
) in quoted attributes.Changelog
0.25.0 (2019-04-23)
unrecognized-char-ref
for validating character references.auto
style for attr-quotes
rule.no-raw-characters
to check for presence of unescaped <
, >
and
&
characters.Changelog
0.24.2 (2019-03-31)
meta-refresh
.element:ready
triggered after an element and its children has been
fully constructed.init()
and setup()
.require-sri
.<slot>
element.Changelog
0.24.1 (2019-03-26)
Changelog
0.24.0 (2019-03-26)
wcag/h36
.wcag/h30
.long-title
.empty-title
.UserError
exception which is to be used for any error which is not
caused by an internal error, e.g. configuration errors or a plugin. The error
suppresses the notice about internal error which should be reported as a bug.Changelog
0.23.0 (2019-03-20)
empty-heading
validating headers have textual content.processElement
hook on Source
.textContent
property on DOMNode
to get text (recursive) from child
nodes. A new node type TextNode
is added.firstChild
and lastChild
to DOMNode
.Config
, ConfigData
and ConfigLoader
in shim.Changelog
0.22.1 (2019-02-25)
.children
has been split and moved from HtmlElement
to
DOMNode
. .childNodes
replaces the original .children
but is now typed
DOMNode[]
(and in a future release may contain other node types). A getter
.nodeElements
can be used to access only HtmlElement
from .childNodes
and is typed HtmlElement[]
. If your rules use .children
the<rootDir>
is now respected when configuring plugins.wcag/h37
rule.