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

basichtml

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basichtml - npm Package Compare versions

Comparing version 2.4.4 to 2.4.5

2

package.json
{
"name": "basichtml",
"type": "commonjs",
"version": "2.4.4",
"version": "2.4.5",
"description": "A NodeJS based, standard oriented, HTML implementation.",

@@ -6,0 +6,0 @@ "main": "basichtml.js",

@@ -100,7 +100,17 @@ const utils = require('./utils');

/* istanbul ignore next */
normalize() {
for (let {childNodes} = this, i = 0; i < childNodes.length; i++) {
const node = childNodes[i];
if (node.nodeType === 3 && !node.textContent.trim())
childNodes.splice(i--, 1);
if (node.nodeType === 3) {
if (!node.textContent.trim())
childNodes.splice(i--, 1);
else {
const {previousSibling} = node;
if (previousSibling && previousSibling.nodeType === 3) {
previousSibling.textContent += node.textContent;
childNodes.splice(i--, 1);
}
}
}
else if (node.nodeType === 1)

@@ -107,0 +117,0 @@ node.normalize();

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