happy-dom
Advanced tools
Comparing version 14.3.5 to 14.3.6
@@ -18,3 +18,3 @@ import * as PropertySymbol from '../PropertySymbol.js'; | ||
*/ | ||
const MARKUP_REGEXP = /<([a-zA-Z0-9-]+)|<\/([a-zA-Z0-9-]+)\s*>|<!--([^-]+)-->|<!--([^>]+)>|<!([^>]+)>|<\?([^>]+)>|(\/>)|(>)/gm; | ||
const MARKUP_REGEXP = /<([a-zA-Z0-9-]+)|<\/([a-zA-Z0-9-]+)\s*>|<!--([^-]+)-->|<!--([^>]+)>|<!([^>]*)>|<\?([^>]+)>|(\/>)|(>)/gm; | ||
/** | ||
@@ -79,3 +79,3 @@ * Attribute RegExp. | ||
if (match.index !== lastIndex && | ||
(match[1] || match[2] || match[3] || match[4] || match[5] || match[6])) { | ||
(match[1] || match[2] || match[3] || match[4] || match[5] !== undefined || match[6])) { | ||
// Plain text between tags. | ||
@@ -151,4 +151,5 @@ currentNode.appendChild(document.createTextNode(Entities.decodeHTML(xml.substring(lastIndex, match.index)))); | ||
} | ||
else if (match[5]) { | ||
// Exclamation mark comment (usually <!DOCTYPE>). | ||
else if (match[5] !== undefined) { | ||
// Exclamation mark comment. | ||
// Document type node or comment. | ||
const exclamationComment = Entities.decodeHTML(match[5]); | ||
@@ -155,0 +156,0 @@ currentNode.appendChild(this.getDocumentTypeNode(document, exclamationComment) || |
{ | ||
"name": "happy-dom", | ||
"version": "14.3.5", | ||
"version": "14.3.6", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/capricorn86/happy-dom", |
@@ -27,3 +27,3 @@ import Document from '../nodes/document/Document.js'; | ||
const MARKUP_REGEXP = | ||
/<([a-zA-Z0-9-]+)|<\/([a-zA-Z0-9-]+)\s*>|<!--([^-]+)-->|<!--([^>]+)>|<!([^>]+)>|<\?([^>]+)>|(\/>)|(>)/gm; | ||
/<([a-zA-Z0-9-]+)|<\/([a-zA-Z0-9-]+)\s*>|<!--([^-]+)-->|<!--([^>]+)>|<!([^>]*)>|<\?([^>]+)>|(\/>)|(>)/gm; | ||
@@ -99,3 +99,3 @@ /** | ||
match.index !== lastIndex && | ||
(match[1] || match[2] || match[3] || match[4] || match[5] || match[6]) | ||
(match[1] || match[2] || match[3] || match[4] || match[5] !== undefined || match[6]) | ||
) { | ||
@@ -186,5 +186,5 @@ // Plain text between tags. | ||
currentNode.appendChild(document.createComment(Entities.decodeHTML(comment))); | ||
} else if (match[5]) { | ||
// Exclamation mark comment (usually <!DOCTYPE>). | ||
} else if (match[5] !== undefined) { | ||
// Exclamation mark comment. | ||
// Document type node or comment. | ||
const exclamationComment = Entities.decodeHTML(match[5]); | ||
@@ -191,0 +191,0 @@ currentNode.appendChild( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
8221612
164793