diff options
author | Martin Fischer <martin@push-f.com> | 2023-08-13 20:42:02 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-08-19 13:41:55 +0200 |
commit | 26cd63394f640920db4ea9402d77cec1358fb098 (patch) | |
tree | 4badbe32b41dce80c812ea08839f7367150f9e0c /src/machine.rs | |
parent | 1edeab2b7b7d039fd9dd83bc14255bddff47618c (diff) |
break!: replace set_doctype_* methods with init_ methods
Diffstat (limited to 'src/machine.rs')
-rw-r--r-- | src/machine.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/machine.rs b/src/machine.rs index ccd3052..4a9034e 100644 --- a/src/machine.rs +++ b/src/machine.rs @@ -1266,13 +1266,13 @@ where } Some('"') => { slf.emit_error(Error::MissingWhitespaceAfterDoctypePublicKeyword); - slf.emitter.set_doctype_public_identifier(""); + slf.emitter.init_doctype_public_identifier(); slf.state = State::DoctypePublicIdentifierDoubleQuoted; Ok(ControlToken::Continue) } Some('\'') => { slf.emit_error(Error::MissingWhitespaceAfterDoctypePublicKeyword); - slf.emitter.set_doctype_public_identifier(""); + slf.emitter.init_doctype_public_identifier(); slf.state = State::DoctypePublicIdentifierSingleQuoted; Ok(ControlToken::Continue) } @@ -1300,12 +1300,12 @@ where State::BeforeDoctypePublicIdentifier => match slf.read_char()? { Some(whitespace_pat!()) => Ok(ControlToken::Continue), Some('"') => { - slf.emitter.set_doctype_public_identifier(""); + slf.emitter.init_doctype_public_identifier(); slf.state = State::DoctypePublicIdentifierDoubleQuoted; Ok(ControlToken::Continue) } Some('\'') => { - slf.emitter.set_doctype_public_identifier(""); + slf.emitter.init_doctype_public_identifier(); slf.state = State::DoctypePublicIdentifierSingleQuoted; Ok(ControlToken::Continue) } @@ -1398,13 +1398,13 @@ where } Some('"') => { slf.emit_error(Error::MissingWhitespaceBetweenDoctypePublicAndSystemIdentifiers); - slf.emitter.set_doctype_system_identifier(""); + slf.emitter.init_doctype_system_identifier(); slf.state = State::DoctypeSystemIdentifierDoubleQuoted; Ok(ControlToken::Continue) } Some('\'') => { slf.emit_error(Error::MissingWhitespaceBetweenDoctypePublicAndSystemIdentifiers); - slf.emitter.set_doctype_system_identifier(""); + slf.emitter.init_doctype_system_identifier(); slf.state = State::DoctypeSystemIdentifierSingleQuoted; Ok(ControlToken::Continue) } @@ -1430,12 +1430,12 @@ where Ok(ControlToken::Continue) } Some('"') => { - slf.emitter.set_doctype_system_identifier(""); + slf.emitter.init_doctype_system_identifier(); slf.state = State::DoctypeSystemIdentifierDoubleQuoted; Ok(ControlToken::Continue) } Some('\'') => { - slf.emitter.set_doctype_system_identifier(""); + slf.emitter.init_doctype_system_identifier(); slf.state = State::DoctypeSystemIdentifierSingleQuoted; Ok(ControlToken::Continue) } @@ -1460,13 +1460,13 @@ where } Some('"') => { slf.emit_error(Error::MissingWhitespaceAfterDoctypeSystemKeyword); - slf.emitter.set_doctype_system_identifier(""); + slf.emitter.init_doctype_system_identifier(); slf.state = State::DoctypeSystemIdentifierDoubleQuoted; Ok(ControlToken::Continue) } Some('\'') => { slf.emit_error(Error::MissingWhitespaceAfterDoctypeSystemKeyword); - slf.emitter.set_doctype_system_identifier(""); + slf.emitter.init_doctype_system_identifier(); slf.state = State::DoctypeSystemIdentifierSingleQuoted; Ok(ControlToken::Continue) } @@ -1494,12 +1494,12 @@ where State::BeforeDoctypeSystemIdentifier => match slf.read_char()? { Some(whitespace_pat!()) => Ok(ControlToken::Continue), Some('"') => { - slf.emitter.set_doctype_system_identifier(""); + slf.emitter.init_doctype_system_identifier(); slf.state = State::DoctypeSystemIdentifierDoubleQuoted; Ok(ControlToken::Continue) } Some('\'') => { - slf.emitter.set_doctype_system_identifier(""); + slf.emitter.init_doctype_system_identifier(); slf.state = State::DoctypeSystemIdentifierSingleQuoted; Ok(ControlToken::Continue) } |