aboutsummaryrefslogtreecommitdiff
path: root/src/machine.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine.rs')
-rw-r--r--src/machine.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine.rs b/src/machine.rs
index 5910667..149b64d 100644
--- a/src/machine.rs
+++ b/src/machine.rs
@@ -947,7 +947,7 @@ where
}
Some('d' | 'D') if slf.try_read_string("octype", false)? => {
slf.state = State::Doctype;
- slf.doctype_offset = slf.reader.position() - b"<!doctype".len();
+ slf.some_offset = slf.reader.position() - b"<!doctype".len();
Ok(ControlToken::Continue)
}
Some('[') if slf.try_read_string("CDATA[", true)? => Ok(ControlToken::CdataOpen),
@@ -1895,7 +1895,7 @@ where
impl<R: Reader + Position<O>, O: Offset, E: Emitter<O>> Tokenizer<R, O, E> {
#[inline]
fn init_doctype(&mut self) {
- self.emitter.init_doctype(self.doctype_offset);
+ self.emitter.init_doctype(self.some_offset);
}
}