Socket
Socket
Sign inDemoInstall

sax

Package Overview
Dependencies
0
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.5.1

8

lib/sax.js

@@ -634,2 +634,4 @@ // wrapper for non-node envs

function strictFail (parser, message) {
if (typeof parser !== 'object' || !(parser instanceof SAXParser))
throw new Error('bad call to strictFail');
if (parser.strict) error(parser, message)

@@ -932,3 +934,3 @@ }

if (not(whitespace, c) && (!parser.sawRoot || parser.closedRoot))
strictFail("Text data outside of root node.")
strictFail(parser, "Text data outside of root node.")
if (c === "&") parser.state = S.TEXT_ENTITY

@@ -1269,3 +1271,3 @@ else parser.textNode += c

if (c === ">") closeTag(parser)
else strictFail("Invalid characters in closing tag")
else strictFail(parser, "Invalid characters in closing tag")
continue

@@ -1296,3 +1298,3 @@

else {
strictFail("Invalid character entity")
strictFail(parser, "Invalid character entity")
parser[buffer] += "&" + parser.entity + c

@@ -1299,0 +1301,0 @@ parser.entity = ""

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

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

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

@@ -5,7 +5,6 @@ // https://github.com/isaacs/sax-js/issues/47

, expect : [
[ "attribute", { name:'href', value:"query.svc?x=1&y=2&z=3"} ],
[ "opentag", { name: "a", attributes: { href:"query.svc?x=1&y=2&z=3"}, isSelfClosing: true } ],
[ "closetag", "a" ]
[ "attribute", { name:'HREF', value:"query.svc?x=1&y=2&z=3"} ],
[ "opentag", { name: "A", attributes: { HREF:"query.svc?x=1&y=2&z=3"}, isSelfClosing: true } ],
[ "closetag", "A" ]
]
, strict : true
, opt : {}

@@ -12,0 +11,0 @@ }

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