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
259
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-validate - npm Package Versions

1
2426

0.10.0

Diff

Changelog

Source

0.10.0 (2018-08-11)

Breaking changes

  • rule api overhaul, all rules are now classes.

Features

  • support multiple events for single listener and listener deregistration.
  • new Engine class for easier programmatical usage.
  • stricter types related to events
  • bump dependencies.

Bugfixes

  • add espree dependency
ext
published 0.9.2 •

Changelog

Source

0.9.2 (2018-07-12)

Features

  • add no-inline-style to htmlvalidate:recommended.
  • add htmlvalidate:document for predefined set of document-related rules, e.g. recommended for documents but not component templates.
  • add missing-doctype rule to require doctype.
  • add source location to root DOMNode containing the first line and column in the source file.
  • add doctype property to DOMTree.
  • add doctype event, emitted when a doctype is encountered.
  • add element-case rule for validating case of element names.
  • add attr-case rule for validating case of attributes.
ext
published 0.9.1 •

Changelog

Source

0.9.1 (2018-07-01)

Features

  • add protractor-html-validate to docs.
ext
published 0.9.0 •

Changelog

Source

0.9.0 (2018-06-17)

Breaking changes

  • semantics for require changed from require('html-validate') to require('html-validate').HtmlValidate to support exposing other classes.

Features

  • new TemplateExtractor helper class for extracting templates from javascript sources.
  • trigger downstream projects on release

Bugfixes

  • Report valid now only checks for errors, the result will still be valid if only warnings are present.
ext
published 0.8.3 •

Changelog

Source

0.8.3 (2018-06-12)

  • run tests against multiple node versions (8.x, 9.x and 10.x) to ensure compatibility.
  • exposed getFormatter as a reusable function to load formatters from string (like CLI tool): name[=DST][,name=DST...]
ext
published 0.8.2 •

Changelog

Source

0.8.2 (2018-05-28)

Bugfixes

  • lexer better handling of newlines, especially CRLF \r\n.
ext
published 0.8.1 •

Changelog

Source

0.8.1 (2018-05-27)

Misc

  • update package.json
ext
published 0.8.0 •

Changelog

Source

0.8.0 (2018-05-27)

Features

  • easier API usage: require('html-validate') now returns class without using require(html-validate/build/htmlvalidate').default.
  • support transform in configuration to extract source html from other files.
  • attach depth and unique read-only properties to DOMNode corresponding to the nodes depth in the DOM tree and a sequential id (unique for the session).
  • new rule no-conditional-comments to disallow usage of conditional comments.
  • handle conditional comments.

Bugfixes

  • handle whitespace before doctype
  • DOMTokenlist now handles multiple spaces as delimiter and strip leading/trailing whitespace.
ext
published 0.7.0 •

Changelog

Source

0.7.0 (2017-11-04)

Features

  • new rule no-implicit-close to disallow usage of optional end tags.
  • handle optional end tags.
  • better result sorting, error messages are now sorted by line and column, the stage which triggered the error doesn't matter any longer.
  • better result merging, files will no longer be duplicated.
  • element metadata can no be sourced from multiple sources and be configured using the elements configuration property.

Improvements

  • better configuration merging

Bugfixes

  • fixed script tag incorrectly consuming markup due to greedy matching.
ext
published 0.6.0 •

Changelog

Source

0.6.0 (2017-10-29)

Features

  • new rule no-deprecated-attr for testing if any deprecated attributes is used.
  • CLI supports globbing (as fallback if shell doesn't expand the glob already)

Bugfixes

  • fix lowercase <!doctype html> crashing the lexer.
  • fix node binary name in shebang
  • fix directory traversal on windows
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