Socket
Socket
Sign inDemoInstall

sax

Package Overview
Dependencies
0
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.0 to 1.4.1

13

lib/sax.js

@@ -1106,8 +1106,7 @@ ;(function (sax) { // wrapper for non-node envs

if (parser.doctype && parser.doctype !== true) {
parser.sgmlDecl += c
continue;
}
if ((parser.sgmlDecl + c).toUpperCase() === CDATA) {
if (parser.doctype && parser.doctype !== true && parser.sgmlDecl) {
parser.state = S.DOCTYPE_DTD
parser.doctype += '<!' + parser.sgmlDecl + c
parser.sgmlDecl = ''
} else if ((parser.sgmlDecl + c).toUpperCase() === CDATA) {
emitNode(parser, 'onopencdata')

@@ -1180,2 +1179,4 @@ parser.state = S.CDATA

parser.q = c
} else {
parser.doctype += c
}

@@ -1182,0 +1183,0 @@ continue

@@ -5,3 +5,3 @@ {

"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"version": "1.4.0",
"version": "1.4.1",
"main": "lib/sax.js",

@@ -8,0 +8,0 @@ "license": "ISC",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc