diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-03 10:47:44 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-03 23:00:05 +0200 |
commit | d56686deab81c8b50207b75a485cf26ec8502383 (patch) | |
tree | 47f9466c6643a5851efb10f3422d056598341fab /src/machine.rs | |
parent | 0576e5a9b93f28bd4d2adc224598de319e14f1be (diff) |
break!: make Doctype name field optional
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; |