Permalink
Browse files

forgot to include the if(!tagName) error back in during tag parsing

  • Loading branch information...
1 parent 9c71841 commit 74fc5077e68e9ba259405ae271d0a1bb1c8279f1 @Pomax Pomax committed Jun 22, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 slowparse.js
View
@@ -1103,10 +1103,8 @@ var Slowparse = (function() {
else {
// We want to make sure that opening tags have valid tag names.
- if (tagName) {
- if ((this.parseSVG && !this._knownSVGElement(tagName)) || !this._knownHTMLElement(tagName))
+ if (!tagName || (tagName && (!this._knownHTMLElement(tagName) || (this.parseSVG && !this._knownSVGElement(tagName)))))
throw new ParseError("INVALID_TAG_NAME", tagName, token);
- }
var parseInfo = { openTag: { start: token.interval.start }};
var nameSpace = (this.parseSVG ? this.svgNameSpace : undefined);

0 comments on commit 74fc507

Please sign in to comment.