Comparing version 5.0.0 to 5.0.1
@@ -9,2 +9,6 @@ # Changelog | ||
# 5.0.1 | ||
* `FIX`: return `{}` on non-existing attributes, too | ||
# 5.0.0 | ||
@@ -11,0 +15,0 @@ |
@@ -16,3 +16,3 @@ { | ||
], | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"main": "./parser.js", | ||
@@ -19,0 +19,0 @@ "bugs": { |
@@ -757,3 +757,5 @@ 'use strict'; | ||
cachedAttrs = true; // stop attribute processing | ||
// don't process attributes; | ||
// there are none | ||
cachedAttrs = {}; | ||
@@ -835,3 +837,3 @@ //if (xml.charCodeAt(i+1) === 47) { // </... | ||
if (cachedAttrs !== true) { | ||
if (cachedAttrs === null) { | ||
// quick check, whether there may be namespace | ||
@@ -895,3 +897,2 @@ // declarations on the node; if that is the case | ||
cachedAttrs = true; | ||
} | ||
@@ -898,0 +899,0 @@ |
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
28350
727