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 84fb525..b23e5f2 100644
--- a/src/machine.rs
+++ b/src/machine.rs
@@ -46,6 +46,7 @@ where
Ok(ControlToken::Continue)
}
Some('<') => {
+ slf.some_offset = slf.reader.position() - 1;
slf.state = State::TagOpen;
Ok(ControlToken::Continue)
}
@@ -947,7 +948,6 @@ where
}
Some('d' | 'D') if slf.try_read_string("octype", false)? => {
slf.state = State::Doctype;
- slf.some_offset = slf.reader.position() - b"<!doctype".len();
Ok(ControlToken::Continue)
}
Some('[') if slf.try_read_string("CDATA[", true)? => Ok(ControlToken::CdataOpen),