fix(HtmlLexer): tag name must follow "<" without space
see http://www.w3.org/TR/html5/syntax.html#tag-open-state
This commit is contained in:
@ -378,7 +378,9 @@ class _HtmlTokenizer {
|
||||
let savedPos = this._savePosition();
|
||||
let lowercaseTagName;
|
||||
try {
|
||||
this._attemptUntilFn(isNotWhitespace);
|
||||
if (!isAsciiLetter(this.peek)) {
|
||||
throw this._createError(unexpectedCharacterErrorMsg(this.peek), this._getLocation());
|
||||
}
|
||||
var nameStart = this.index;
|
||||
this._consumeTagOpenStart(start);
|
||||
lowercaseTagName = this.inputLowercase.substring(nameStart, this.index);
|
||||
|
Reference in New Issue
Block a user