aboutsummaryrefslogtreecommitdiff
path: root/src/tokenizer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r--src/tokenizer.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs
index cd5ae71..4d3c534 100644
--- a/src/tokenizer.rs
+++ b/src/tokenizer.rs
@@ -92,15 +92,15 @@ pub enum State {
/// The [PLAINTEXT state].
///
/// [PLAINTEXT state]: https://html.spec.whatwg.org/multipage/parsing.html#plaintext-state
- PlainText,
+ Plaintext,
/// The [RCDATA state].
///
/// [RCDATA state]: https://html.spec.whatwg.org/multipage/parsing.html#rcdata-state
- RcData,
+ Rcdata,
/// The [RAWTEXT state].
///
/// [RAWTEXT state]: https://html.spec.whatwg.org/multipage/parsing.html#rawtext-state
- RawText,
+ Rawtext,
/// The [script data state].
///
/// [script data state]: https://html.spec.whatwg.org/multipage/parsing.html#script-data-state
@@ -119,9 +119,9 @@ impl From<State> for machine::State {
fn from(state: State) -> Self {
match state {
State::Data => machine::State::Data,
- State::PlainText => machine::State::PlainText,
- State::RcData => machine::State::RcData,
- State::RawText => machine::State::RawText,
+ State::Plaintext => machine::State::PlainText,
+ State::Rcdata => machine::State::RcData,
+ State::Rawtext => machine::State::RawText,
State::ScriptData => machine::State::ScriptData,
State::ScriptDataEscaped => machine::State::ScriptDataEscaped,
State::ScriptDataDoubleEscaped => machine::State::ScriptDataDoubleEscaped,