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

Diff

Changelog

Source

0.18.2 (2019-01-14)

Bugfixes

  • fix issue when calling getAttributeValue on a boolean attribute.
  • handle DynamicValue in DOMTokenList and id-pattern.
ext
published 0.18.1 •

Changelog

Source

0.18.1 (2019-01-12)

Features

  • CLI learned --print-config to output configuration for a given file.
ext
published 0.18.0 •

Changelog

Source

0.18.0 (2019-01-10)

Features

  • add support for dynamic attribute values, that is the value is marked as being set but has no known value. Rules are expected to assume the value exists and is valid. The primary usage for this is in combination with the parseAttribute hook, e.g :id="..." can yield attribute id with a dynamic value.
  • add support for transformer hooks, currently the only hook is parseAttribute allowing the transformer to alter the attribute before any events are emitted, e.g. it can pick up the vuejs :id attribute and pass it as id to allow other rules to continue just as if id was typed.

Bugfixes

  • fix ConfigLoader tests when running on windows.
ext
published 0.17.0 •

Changelog

Source

0.17.0 (2019-01-09)

Breaking changes

  • DOMNode has been renamed HtmlElement and there is instead a new base class DOMnode which HtmlElement extends from. Rules using DOMNode need to be changed to use HtmlElement.

Features

  • use Prettier for formatting sources.
  • add HtmlValidate.getRuleDocumentation() API for IDEs to fetch contextual rule documentation.
  • add codeframe formatter (from eslint).
  • add HtmlValidate.flushConfigCache to allow flushing the config loader cache.
  • add TemplateExtractor.createSource as a quick way to create a source from filename.
  • add typescript definition for shim.js
  • add validateSource to HtmlValidate allowing to manually passing a source.
  • HtmlValidate.getConfigFor is now part of public API.

Bugfixes

  • Directives can now enable/disable rules working with dom:ready event.
  • HtmlElement location is now shifted by 1.
ext
published 0.16.1 •

Changelog

Source

0.16.1 (2018-12-16)

Bugfixes

  • Message now passes size property from Location
ext
published 0.16.0 •

Changelog

Source

0.16.0 (2018-12-15)

Features

  • Location has a new property size holding the number of characters the location refers to.
  • HtmlValidate class now loads same default config as CLI if no configuration is passed explicitly.
  • Location has a new property offset holding the offset into the source data (starting at zero).
  • CLI learned --stdin and --stdin-filename for passing markup on standard input and explicitly naming it. Useful for external tools and IDEs which wants to pass the markup in stdin instead of a temporary file.
ext
published 0.15.3 •

Changelog

Source

0.15.3 (2018-12-05)

Features

  • expose querySelector and querySelectorAll on DOMNode, not just DOMTree.
ext
published 0.15.2 •

Changelog

Source

0.15.2 (2018-12-01)

Features

  • move repository to https://gitlab.com/html-validate/html-validate
  • move homepage to https://html-validate.org
  • more element attributes added.
ext
published 0.15.1 •

Changelog

Source

0.15.1 (2018-11-26)

Features

  • new properties previousSibling and nextSibling on DOMNode.
ext
published 0.15.0 •

Changelog

Source

0.15.0 (2018-11-21)

Features

  • new rule attribute-boolean-style to validate style of boolean attributes.
  • new property nodeName on DOMNode.

Bugfixes

  • attribute-allowed-values now normalizes boolean attributes before validating, i.e. it will accept disabled, disabled="" or disabled="disabled". Fixes #13.
  • input learned required attribute.
  • querySelector properly handles attribute selectors with dashes and digits. Fixes #15.
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