diff options
-rw-r--r-- | CHANGELOG.md | 2 | ||||
-rw-r--r-- | src/tokenizer.rs | 10 |
2 files changed, 2 insertions, 10 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index f48b124..380c5d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,8 @@ * Three variants of the `State` enum have been renamed according to the Rust API guidelines (`RcData` to `Rcdata`, `RawText` to `Rawtext` and `PlainText` to `Plaintext`). +* Removed `State::ScriptDataEscaped` and `State::ScriptDataDoubleEscaped` variants. + * `NaiveParser`: Removed `new_with_spans`. ### 0.5.1 - 2023-09-03 diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 83b18e1..8a6e2fd 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -105,14 +105,6 @@ pub enum State { /// /// [script data state]: https://html.spec.whatwg.org/multipage/parsing.html#script-data-state ScriptData, - /// The [script data escaped state]. - /// - /// [script data escaped state]: https://html.spec.whatwg.org/multipage/parsing.html#script-data-escaped-state - ScriptDataEscaped, - /// The [script data double escaped state]. - /// - /// [script data double escaped state]: https://html.spec.whatwg.org/multipage/parsing.html#script-data-double-escaped-state - ScriptDataDoubleEscaped, } impl From<State> for machine::State { @@ -123,8 +115,6 @@ impl From<State> for machine::State { 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, } } } |