Socket
Socket
Sign inDemoInstall

happy-dom

Package Overview
Dependencies
Maintainers
1
Versions
575
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 14.3.5 to 14.3.6

9

lib/xml-parser/XMLParser.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc