LibWeb: Remove duplicate if branch in fragment parsing.

I noticed in the video the duplicate `if` check. This commit removes
the duplicated branch.
This commit is contained in:
theazgra 2020-06-26 11:26:35 +02:00 committed by Andreas Kling
parent 6293d1a13c
commit 6a401a9bde
Notes: sideshowbarker 2024-07-19 05:22:20 +09:00

View file

@ -2621,9 +2621,6 @@ NonnullRefPtrVector<Node> HTMLDocumentParser::parse_html_fragment(Element& conte
} else if (context_element.tag_name().is_one_of(HTML::TagNames::noscript)) {
if (context_element.document().is_scripting_enabled())
parser.m_tokenizer.switch_to({}, HTMLTokenizer::State::RAWTEXT);
} else if (context_element.tag_name().is_one_of(HTML::TagNames::noscript)) {
if (context_element.document().is_scripting_enabled())
parser.m_tokenizer.switch_to({}, HTMLTokenizer::State::RAWTEXT);
} else if (context_element.tag_name().is_one_of(HTML::TagNames::plaintext)) {
parser.m_tokenizer.switch_to({}, HTMLTokenizer::State::PLAINTEXT);
}