diff options
Diffstat (limited to 'src/naive_parser.rs')
-rw-r--r-- | src/naive_parser.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/naive_parser.rs b/src/naive_parser.rs index b26e25e..ec07b07 100644 --- a/src/naive_parser.rs +++ b/src/naive_parser.rs @@ -97,10 +97,10 @@ pub(crate) fn naive_next_state(tag_name: &str) -> State { // These transitions are defined in https://html.spec.whatwg.org/multipage/parsing.html#parsing-html-fragments. // TODO: investigate what state logic Python's HTMLParser is using match tag_name { - "title" | "textarea" => State::RcData, - "style" | "xmp" | "iframe" | "noembed" | "noframes" => State::RawText, + "title" | "textarea" => State::Rcdata, + "style" | "xmp" | "iframe" | "noembed" | "noframes" => State::Rawtext, "script" => State::ScriptData, - "plaintext" => State::PlainText, + "plaintext" => State::Plaintext, _other => State::Data, } } |