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 0.5.0 to 0.5.1

6

lib/default_tree_adapter.js

@@ -94,9 +94,9 @@ //TODO test it

exports.insertCharacterBefore = function (parentNode, ch, referenceNode) {
exports.insertTextBefore = function (parentNode, text, referenceNode) {
var prevNode = parentNode.childNodes[parentNode.childNodes.indexOf(referenceNode) - 1];
if (prevNode && prevNode.nodeName === '#text')
prevNode.value += ch;
prevNode.value += text;
else
insertBefore(parentNode, createTextNode(ch), referenceNode);
insertBefore(parentNode, createTextNode(text), referenceNode);
};

@@ -103,0 +103,0 @@

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

@@ -6,0 +6,0 @@ "keywords": ["html", "parser", "html5", "WHATWG", "specification", "fast"],

Sorry, the diff of this file is too big to display

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