Skip to content

Commit

Permalink
Fix attribute-less elements
Browse files Browse the repository at this point in the history
Elements with no attributes were picking up the attributes of the last
element before them.
  • Loading branch information
laverdet committed Jul 21, 2011
1 parent 180ef93 commit 97ce12a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/environment.js
Expand Up @@ -119,8 +119,8 @@
}

// Generate attributes
var attributes = {}, attributesNS = undefined;
if (keys) {
var attributes = {}, attributesNS = undefined;
for (var jj = 0; jj < keys.length; ++jj) {
var attrName = parseXMLName(keys[jj]);
if (attrName[1]) {
Expand Down

0 comments on commit 97ce12a

Please sign in to comment.