saxen
Advanced tools
Comparing version 4.0.1 to 5.0.0
@@ -9,2 +9,10 @@ # Changelog | ||
# 5.0.0 | ||
* `CHORE`: don't return `true` on empty attrs [`f7360b11`](https://github.com/nikku/saxen/commit/f7360b115b651b9eb9ca3488a48e827d974deae1) | ||
## 4.0.1 | ||
* `DOCS`: improve readme | ||
## 4.0.0 | ||
@@ -11,0 +19,0 @@ |
@@ -16,3 +16,3 @@ { | ||
], | ||
"version": "4.0.1", | ||
"version": "5.0.0", | ||
"main": "./parser.js", | ||
@@ -19,0 +19,0 @@ "bugs": { |
@@ -327,3 +327,3 @@ 'use strict'; | ||
* Return semantics: (1) `false` on attribute parse error, | ||
* (2) true on no attributes, (3) object hash on extracted attrs. | ||
* (2) object hash on extracted attrs. | ||
* | ||
@@ -351,3 +351,2 @@ * @return {boolean|Object} | ||
attrs = {}, | ||
ok, | ||
w, | ||
@@ -390,3 +389,2 @@ j; | ||
name = s.substring(i, j); | ||
ok = true; | ||
@@ -537,7 +535,2 @@ if (name === 'xmlns:xmlns') { | ||
if (!ok) { | ||
// could not parse attributes, skipping | ||
return cachedAttrs = true; | ||
} | ||
// handle deferred, possibly namespaced attributes | ||
@@ -544,0 +537,0 @@ if (maybeNS) { |
28287
726