diff options
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r-- | src/tokenizer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs index e8a8908..1b80ec3 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -160,7 +160,7 @@ impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Tokenizer<R, O, E> { #[inline] pub(crate) fn emit_current_tag(&mut self) { - self.emitter.emit_current_tag(); + self.emitter.emit_current_tag(self.reader.position() - 1); if self.is_start_tag { std::mem::swap(&mut self.last_start_tag_name, &mut self.current_tag_name); } |