diff options
Diffstat (limited to 'src/machine.rs')
-rw-r--r-- | src/machine.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/machine.rs b/src/machine.rs index 26e1652..6c4558c 100644 --- a/src/machine.rs +++ b/src/machine.rs @@ -1208,6 +1208,7 @@ where Some('\0') => { slf.emit_error(Error::UnexpectedNullCharacter); slf.init_doctype(); + slf.emitter.init_doctype_name(slf.position_before_match); slf.emitter.push_doctype_name("\u{fffd}"); slf.state = State::DoctypeName; Ok(ControlToken::Continue) @@ -1229,6 +1230,7 @@ where } Some(x) => { slf.init_doctype(); + slf.emitter.init_doctype_name(slf.position_before_match); slf.emitter .push_doctype_name(ctostr!(x.to_ascii_lowercase())); slf.state = State::DoctypeName; |