happy-dom
Advanced tools
Comparing version 0.10.5 to 0.10.6
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
483531
272
12307