Comparing version 5.6.0 to 5.6.1
@@ -17,3 +17,3 @@ { | ||
], | ||
"version": "5.6.0", | ||
"version": "5.6.1", | ||
"main": "./parser.js", | ||
@@ -20,0 +20,0 @@ "bugs": { |
@@ -310,2 +310,3 @@ 'use strict'; | ||
attrs = {}, | ||
seenAttrs = {}, | ||
w, | ||
@@ -389,7 +390,10 @@ j; | ||
if (attrs[name]) { | ||
handleError('attribute <' + name + '> already defined'); | ||
// check attribute re-declaration | ||
if (name in seenAttrs) { | ||
handleWarning('attribute <' + name + '> already defined'); | ||
return cachedAttrs = false; | ||
} | ||
seenAttrs[name] = true; | ||
if (!isNamespace) { | ||
@@ -396,0 +400,0 @@ attrs[name] = value; |
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
31984
765