Skip to content

Commit

Permalink
ensure empty attributes have meta/values
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Mar 25, 2017
1 parent 718ff7b commit 96da99b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
11 changes: 6 additions & 5 deletions dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -833,15 +833,16 @@
incrementChar();
}

if (noValue) {
attrs[attrName] = "";
continue;
}

var attrValue = {
meta: {},
value: ""
};

if (noValue) {
attrs[attrName] = attrValue;
continue;
}

var quoteType = " ";

// Exit equal sign and setup quote type
Expand Down

0 comments on commit 96da99b

Please sign in to comment.