aboutsummaryrefslogtreecommitdiff
path: root/src/machine.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine.rs')
-rw-r--r--src/machine.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/machine.rs b/src/machine.rs
index 159a8a0..082ab68 100644
--- a/src/machine.rs
+++ b/src/machine.rs
@@ -903,7 +903,7 @@ where
},
State::SelfClosingStartTag => match slf.read_char()? {
Some('>') => {
- slf.emitter.set_self_closing(slf.reader.position());
+ slf.emitter.set_self_closing(slf.reader.position() - 2);
slf.state = State::Data;
slf.emit_current_tag();
Ok(ControlToken::Continue)