diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-30 09:50:53 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-03 23:00:05 +0200 |
commit | 585c6349c9b84345364350f020e8f987a8b44f7b (patch) | |
tree | 8e8facc1a222f7fa134034f429938654c7fb9884 /src/machine.rs | |
parent | 854e55cd8577baa24a2f3bd00e4ed8687e150f36 (diff) |
fix!: off-by-one end-tag-with-trailing-solidus span
Diffstat (limited to 'src/machine.rs')
-rw-r--r-- | src/machine.rs | 2 |
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) |