Skip to content

Commit

Permalink
fix: report an error on whitespace at the start of end tag
Browse files Browse the repository at this point in the history
  • Loading branch information
lddubeau committed Jul 6, 2018
1 parent b664090 commit c13b122
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/saxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -719,10 +719,7 @@ class SAXParser {

case S_CLOSE_TAG:
if (!this.tagName) {
if (isWhitespace(c)) {
continue;
}
else if (notMatch(NAME_START_CHAR, c)) {
if (notMatch(NAME_START_CHAR, c)) {
this.fail("Invalid tagname in closing tag.");
}
else {
Expand Down

0 comments on commit c13b122

Please sign in to comment.