diff options
| author | Martin Fischer <martin@push-f.com> | 2023-09-28 10:22:52 +0200 | 
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2023-09-28 10:36:08 +0200 | 
| commit | 9e4ad2e8d9b2f1c422bbe0d32aae2afa425769fa (patch) | |
| tree | d2cd1d2ba7cc68a741be112db2dc5d1dff0d22b5 | |
| parent | 3c89744824ea6b8b32d82c2c37ac1de6d980709c (diff) | |
break!: remove State::{ScriptDataEscaped, ScriptDataDoubleEscaped}
These variants actually don't need to be exposed (to the tree builder).
| -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,          }      }  }  | 
