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

happy-dom

Package Overview
Dependencies
Maintainers
1
Versions
593
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

happy-dom - npm Package Compare versions

Comparing version 0.10.5 to 0.10.6

3

lib/html-parser/HTMLParser.js

@@ -38,3 +38,2 @@ "use strict";

newElement._setRawAttributes(match[3]);
debugger;
if (!SelfClosingElements_json_1.default.includes(tagName) && !SelfClosingSVGElements_json_1.default.includes(tagName)) {

@@ -96,3 +95,3 @@ currentParent = currentParent.appendChild(newElement);

}
if (lastIndex < text.length - 1) {
if (lastIndex < text.length) {
var textNode = document.createTextNode(text.substring(lastIndex));

@@ -99,0 +98,0 @@ nodes.push(textNode);

{
"name": "happy-dom",
"version": "0.10.5",
"version": "0.10.6",
"license": "MIT",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/capricorn86/happy-dom#readme",

@@ -221,2 +221,3 @@ # Happy DOM

| ------- | ---------- | ---------------- |
| 0.10.6 | 2020-01-13 | No text node is created when there only is one character. (#28) |
| 0.10.1 | 2019-12-11 | Fixes issue with parsing of self closing SVG elements. (#24) |

@@ -223,0 +224,0 @@ | 0.10.0 | 2019-12-10 | Adds support for querying all (*). (#19) |

@@ -39,3 +39,2 @@ import Node from '../nodes/basic-types/node/Node';

debugger;
if (!SelfClosingElements.includes(tagName) && !SelfClosingSVGElements.includes(tagName)) {

@@ -101,3 +100,3 @@ currentParent = <Element>currentParent.appendChild(newElement);

if (lastIndex < text.length - 1) {
if (lastIndex < text.length) {
const textNode = document.createTextNode(text.substring(lastIndex));

@@ -104,0 +103,0 @@ nodes.push(textNode);

Sorry, the diff of this file is not supported yet

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