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
2527

0.9.0

Diff

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
ext
published 0.5.0 •

Changelog

Source

0.5.0 (2017-10-17)

Features

  • Rule element-name learned whitelist and blacklist options.
  • Support outputting to multiple formatters and capturing output to file.
  • checkstyle formatter. Use -f checkstyle.
ext
published 0.4.0 •

Changelog

Source

0.4.0 (2017-10-17)

Features

  • new rule no-inline-style disallowing inline style attribute.
  • new rule img-req-alt validating that images have alternative text.
  • new rule element-permitted-order validating the required order of elements with restrictions.
  • new rule element-permitted-occurrences validating elements with content models limiting the number of times child elements can be used.

Bugfixes

  • the parser now resets the DOM tree before starting, fixes issue when running the same parser instance on multiple sources.
ext
published 0.3.0 •

Changelog

Source

0.3.0 (2017-10-12)

Features

  • new rules id-pattern and class-pattern for requiring a specific formats.
  • new rule no-dup-class preventing duplicate classes names on the same element.

Bugfixes

  • lexer now chokes on <ANY\n<ANY></ANY></ANY> (first tag missing >) instead of handling the inner <ANY> as an attribute.
  • element-permitted-content fixed issue where descending with missing metadata would report as disallowed content.
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