Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-validate

Package Overview
Dependencies
Maintainers
1
Versions
265
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-validate - npm Package Versions

1
27

0.24.2

Diff

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)
ext
published 0.21.0 •

Changelog

Source

0.21.0 (2019-02-17)

Breaking changes

  • button-type is replaced with element-required-attributes.

Features

  • new rule element-required-attributes replaces button-type and allows any element to contain requiredAttributes metadata.
  • support foreign elements. The body of the foreign element will be discarded from the DOM tree and not trigger any rules.
  • CLI write a more verbose message when unhandled exceptions are raised.
  • --dump-events output reduced by hiding element metadata and compacting location data.
  • use jest snapshots to test element metadata as it is more maintainable.

Bugfixes

  • allow <area shape="default"> (fixes #31)
ext
published 0.20.1 •

Changelog

Source

0.20.1 (2019-02-06)

Bugfixes

  • fix #33: ensure wcag/h37 and wcag/h67 checks if node exists before testing tagname.
  • handle boolean attributes in attribute-allowed-values.
ext
published 0.20.0 •

Changelog

Source

0.20.0 (2019-01-29)

Features

  • update codeframe formatter to show not just start location but also end.

Bugfixes

  • Fixes html-validate-angular#1 by handling both regular and arrow functions.
ext
published 0.19.0 •

Changelog

Source

0.19.0 (2019-01-27)

Breaking changes

  • img-req-alt has been renamed wcag/h37.

Features

  • new rule prefer-button.
  • Attribute now stores location of value.
  • new rules wcag/h32 and wcag/h67.
  • move location and isRootElement to DOMNode and add new nodeType property.
  • add Attribute.valueMatches to test attribute value. Handles DynamicValue.
  • querySelector now handles selector lists (comma-separated selectors)
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