Skip to content

Commit 86ccbfa

Browse files
author
Diego
committed
Renaming eof-in-tag-name
1 parent 859c4d4 commit 86ccbfa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/common/error_codes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ module.exports = {
77
endTagWithAttributes: 'end-tag-with-attributes',
88
selfClosingEndTag: 'self-closing-end-tag',
99
unexpectedNullCharacter: 'unexpected-null-character',
10-
unexpectedEofCharacter: 'unexpected-eof-character',
1110
startOfProcessingInstructionOrXMLDeclaration: 'start-of-processing-instruction-or-xml-declaration',
1211
unexpectedFirstCharacterOfStartTagName: 'unexpected-first-character-of-start-tag-name',
1312
missingEndTagName: 'missing-end-tag-name',
13+
eofInTagName: 'eof-in-tag-name',
1414
eofBeforeEndTagName: 'eof-before-end-tag-name',
1515
cdataInHtmlContent: 'cdata-in-html-content',
1616
malformedComment: 'malformed-comment',

lib/tokenizer/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ _[TAG_NAME_STATE] = function tagNameState(cp) {
754754
}
755755

756756
else if (cp === $.EOF) {
757-
this._err(ERR.unexpectedEofCharacter);
757+
this._err(ERR.eofInTagName);
758758
this._emitEOFToken();
759759
}
760760

0 commit comments

Comments
 (0)