aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-09-01 19:47:42 +0200
committerMartin Fischer <martin@push-f.com>2023-09-03 23:00:05 +0200
commit5d91c0cca7e8f453e0e2f36c57e9ad85ee8ab124 (patch)
tree4263bbd4c9cbd20a6455d1c7af45cb4cbd32dcf5 /src
parent63f945e568c0710e3a97cddaa6264e85d86faa79 (diff)
fix: off-by-one missing-semicolon-after-character-reference span
Diffstat (limited to 'src')
-rw-r--r--src/tokenizer.rs5
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);