File tree 3 files changed +6
-2
lines changed
3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
.idea
2
+ .vscode
2
3
node_modules
3
4
docs /build
4
5
docs /05_api_reference.md
Original file line number Diff line number Diff line change @@ -5,5 +5,6 @@ module.exports = {
5
5
nonUnicodeCharacterInInputStream : 'non-unicode-character-in-input-stream' ,
6
6
selfClosingNonVoidHtmlElement : 'self-closing-non-void-html-element' ,
7
7
endTagWithAttributes : 'end-tag-with-attributes' ,
8
- selfClosingEndTag : 'self-closing-end-tag'
8
+ selfClosingEndTag : 'self-closing-end-tag' ,
9
+ unexpectedNullCharacter : 'unexpected-null-character'
9
10
} ;
Original file line number Diff line number Diff line change @@ -644,8 +644,10 @@ _[DATA_STATE] = function dataState(cp) {
644
644
else if ( cp === $ . LESS_THAN_SIGN )
645
645
this . state = TAG_OPEN_STATE ;
646
646
647
- else if ( cp === $ . NULL )
647
+ else if ( cp === $ . NULL ) {
648
+ this . _err ( ERR . unexpectedNullCharacter , null ) ;
648
649
this . _emitCodePoint ( cp ) ;
650
+ }
649
651
650
652
else if ( cp === $ . EOF )
651
653
this . _emitEOFToken ( ) ;
You can’t perform that action at this time.
0 commit comments