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

hast-util-to-parse5

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hast-util-to-parse5 - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

package.json
{
"name": "hast-util-to-parse5",
"version": "4.0.0",
"version": "4.0.1",
"description": "Transform HAST to Parse5’s AST",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -43,3 +43,3 @@ # hast-util-to-parse5 [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]

### `toParse5(node)`
### `toParse5(tree[, space])`

@@ -49,2 +49,11 @@ Transform a [HAST Node][node] to an `ASTNode` according to the default

###### `space`
Whether the root of the given tree is in the `'html'` or `'svg'` space (enum,
`'svg'` or `'html'`, default: `'html'`).
If an `svg` element is found in the HTML space, `toParse5` automatically
switches to the SVG space when entering the element, and switches back when
leaving.
## Contribute

@@ -51,0 +60,0 @@

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