New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

html-validate

Package Overview
Dependencies
Maintainers
1
Versions
279
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-validate - npm Package Versions

1
28

1.1.0

Diff

Changelog

Source

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.
ext
published 1.0.0 •

Changelog

Source

1.0.0 (2019-05-12)

  • rule wcag/h37 now ignores images with role="presentation or aria-hidden="true".
  • allow crossorigin attribute to be boolean or "" (maps to "anonymous").
  • add <picture> element.
  • mark <style> as foreign as to not trigger errors inside css content.
  • allow whitespace around attribute equals sign, e.g class = "foo".
ext
published 0.25.1 •

Changelog

Source

0.25.1 (2019-05-10)

  • allow raw ampersands (&) in quoted attributes.
  • extend set of allowed characters in unquoted attributes in lexer.
ext
published 0.25.0 •

Changelog

Source

0.25.0 (2019-04-23)

  • new rule unrecognized-char-ref for validating character references.
  • add support for auto style for attr-quotes rule.
  • new rule no-raw-characters to check for presence of unescaped <, > and & characters.
ext
published 0.24.2 •

Changelog

Source

0.24.2 (2019-03-31)

Features

  • new rule meta-refresh.
  • new event element:ready triggered after an element and its children has been fully constructed.
  • add plugin callbacks init() and setup().
  • new rule require-sri.
  • add <slot> element.
ext
published 0.24.1 •

Changelog

Source

0.24.1 (2019-03-26)

Bugfixes

  • fix broken edit links in footer.
  • fix broken import causing typescript API users getting build errors.
ext
published 0.24.0 •

Changelog

Source

0.24.0 (2019-03-26)

Features

  • adding link to edit documentation and view rule source in documentation.
  • new rule wcag/h36.
  • new rule wcag/h30.
  • new rule long-title.
  • new rule empty-title.
  • add 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.
  • reworked and extendable validation of elements metadata. Plugins may now add support for custom metadata.

Bugfixes

  • fix handling of plugins with no rules.
ext
published 0.23.0 •

Changelog

Source

0.23.0 (2019-03-20)

Features

  • new rule empty-heading validating headers have textual content.
  • let plugins add configuration presets.
  • add processElement hook on Source.
  • add textContent property on DOMNode to get text (recursive) from child nodes. A new node type TextNode is added.
  • add firstChild and lastChild to DOMNode.
  • docs: precompile syntax highlighting for smoother page loads.
  • expose Config, ConfigData and ConfigLoader in shim.
ext
published 0.22.1 •

Changelog

Source

0.22.1 (2019-02-25)

Breaking change

  • .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

Bugfixes

  • <rootDir> is now respected when configuring plugins.
  • fix cosmetic case of wcag/h37 rule.
ext
published 0.22.0 •

Changelog

Source

0.22.0 (2019-02-24)

Breaking changes

  • HtmlElement direct access to attr is replaced with attributes. The former was an key-value object and the latter is a flattened array of Attribute.

Features

  • exposes Source and AttributeData in shim.
  • HtmlElement will now store duplicated (or aliased) attributes. The biggest change this introduces is that classList will now contain a merged list of all classes. This is needed when combining a static class attribute with a dynamic one.
  • DOM Attribute got two flags isStatic and isDynamic to easily tell if the value is static or dynamic.
  • more verbose exception when a transformer fails. (fixes #37)
  • allow processAttribute hook to yield multiple attributes, typically used when adding aliased attributes such as :class. By adding both the alias and the original the latter can be validated as well (e.g. no-dup-attr can trigger for multiple uses of :class). (fixes #36)
  • allow setting hooks when using HtmlValidate.validateString, makes it easier to write tests which requires hooks, e.g. processing attributes.

Bugfixes

  • [attr] selector now matches boolean attributes.
  • attribute-boolean-style and no-dup-attr now handles when dynamic attributes is used to alias other attributes, e.g :required="foo" no longer triggers an boolean style and class=".." combined with :class=".." no longer triggers duplicate attributes. (fixes #35)
  • attribute-allowed-values now ignores boolean attributes with dynamic values. (partially fixes #35)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc