diff options
Diffstat (limited to 'src/machine.rs')
-rw-r--r-- | src/machine.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/machine.rs b/src/machine.rs index 4f2d129..5c5c533 100644 --- a/src/machine.rs +++ b/src/machine.rs @@ -929,7 +929,8 @@ where State::SelfClosingStartTag => match slf.read_char()? { Some('>') => { slf.emitter.set_self_closing( - slf.position_before_match - slf.reader.len_of_char_in_current_encoding('/'), + slf.position_before_match - slf.reader.len_of_char_in_current_encoding('/') + ..slf.position_before_match, ); slf.state = State::Data; slf.emit_current_tag(); |