aboutsummaryrefslogtreecommitdiff
path: root/src/machine.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-08-30 09:50:53 +0200
committerMartin Fischer <martin@push-f.com>2023-09-03 23:00:05 +0200
commit585c6349c9b84345364350f020e8f987a8b44f7b (patch)
tree8e8facc1a222f7fa134034f429938654c7fb9884 /src/machine.rs
parent854e55cd8577baa24a2f3bd00e4ed8687e150f36 (diff)
fix!: off-by-one end-tag-with-trailing-solidus span
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)