1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 22:04:59 +00:00

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

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);
}