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 0.5.5 to 0.5.6

test/xmlns-as-tag-name.js

9

lib/sax.js

@@ -221,3 +221,2 @@ // wrapper for non-node envs

if (chunk && chunk.length) this.write(chunk)
else if (this.leftovers) this._parser.write(this.leftovers.toString())
this._parser.end()

@@ -663,3 +662,3 @@ return true

function qname (name) {
function qname (name, attribute) {
var i = name.indexOf(":")

@@ -671,3 +670,3 @@ , qualName = i < 0 ? [ "", name ] : name.split(":")

// <x "xmlns"="http://foo">
if (name === "xmlns") {
if (attribute && name === "xmlns") {
prefix = "xmlns"

@@ -689,3 +688,3 @@ local = ""

if (parser.opt.xmlns) {
var qn = qname(parser.attribName)
var qn = qname(parser.attribName, true)
, prefix = qn.prefix

@@ -763,3 +762,3 @@ , local = qn.local

, value = nv[1]
, qualName = qname(name)
, qualName = qname(name, true)
, prefix = qualName.prefix

@@ -766,0 +765,0 @@ , local = qualName.local

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

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

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

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