We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cc258e commit 12c75faCopy full SHA for 12c75fa
lib/tokenizer/index.js
@@ -1195,11 +1195,15 @@ _[SCRIPT_DATA_DOUBLE_ESCAPED_STATE] = function scriptDataDoubleEscapedState(cp)
1195
this._emitChars('<');
1196
}
1197
1198
- else if (cp === $.NULL)
+ else if (cp === $.NULL) {
1199
+ this._err(ERR.unexpectedNullCharacter);
1200
this._emitChars(UNICODE.REPLACEMENT_CHARACTER);
1201
+ }
1202
- else if (cp === $.EOF)
1203
+ else if (cp === $.EOF) {
1204
+ this._err(ERR.eofInScriptHtmlComment);
1205
this._emitEOFToken();
1206
1207
1208
else
1209
this._emitCodePoint(cp);
0 commit comments