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

parse5

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse5 - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

lib/common/doctype.js

5

index.js

@@ -1,3 +0,4 @@

exports.Parser = require('./lib/tree_construction_stage/parser');
exports.TreeSerializer = require('./lib/tree_construction_stage/tree_serializer');
exports.Parser = require('./lib/tree_construction/parser');
exports.SimpleApiParser = require('./lib/simple_api/simple_api_parser');
exports.TreeSerializer = require('./lib/tree_serialization/tree_serializer');

@@ -4,0 +5,0 @@ exports.TreeAdapters = {

6

package.json
{
"name": "parse5",
"description": "Fast full-featured HTML parser for Node. Based on WHATWG HTML5 specification.",
"version": "1.0.1",
"version": "1.1.0",
"author": "Ivan Nikulin (ifaaan@gmail.com, https://github.com/inikulin)",

@@ -19,3 +19,5 @@ "keywords": [

"html serializer",
"htmlserializer"
"htmlserializer",
"sax",
"simple api"
],

@@ -22,0 +24,0 @@ "repository": {

@@ -87,3 +87,3 @@ ![logo](https://raw.github.com/inikulin/parse5/master/logo.png)

####• Parser.parseFragment(htmlFragment, [contextElement])
Parses given `htmlFragment`. Returns `documentFragment` node. Optional `contextElement` argument specifies resulting tree format. If `contextElement` argument is not specified, `<div>` element will be used.
Parses given `htmlFragment`. Returns `documentFragment` node. Optional `contextElement` argument specifies context in which given `htmlFragment` will be parsed (consider it as setting `contextElement.innerHTML` property). If `contextElement` argument is not specified, `<div>` element will be used.

@@ -90,0 +90,0 @@ *Example:*

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