aboutsummaryrefslogtreecommitdiff
path: root/src/machine.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/machine.rs')
-rw-r--r--src/machine.rs24
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)
}