diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tokenizer.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 871074e..f76cad8 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -184,7 +184,10 @@ impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Tokenizer<R, O, E> { | Error::EofInComment | Error::EofInDoctype | Error::EofInScriptHtmlCommentLikeText - | Error::EofInTag => self.reader.position()..self.reader.position(), + | Error::EofInTag + | Error::MissingSemicolonAfterCharacterReference => { + self.reader.position()..self.reader.position() + } _ => self.reader.position() - 1..self.reader.position(), }; self.emitter.emit_error(error, span); |