mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 11:55:12 +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:
parent
6293d1a13c
commit
6a401a9bde
1 changed files with 0 additions and 3 deletions
|
@ -2621,9 +2621,6 @@ NonnullRefPtrVector<Node> HTMLDocumentParser::parse_html_fragment(Element& conte
|
||||||
} else if (context_element.tag_name().is_one_of(HTML::TagNames::noscript)) {
|
} else if (context_element.tag_name().is_one_of(HTML::TagNames::noscript)) {
|
||||||
if (context_element.document().is_scripting_enabled())
|
if (context_element.document().is_scripting_enabled())
|
||||||
parser.m_tokenizer.switch_to({}, HTMLTokenizer::State::RAWTEXT);
|
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)) {
|
} else if (context_element.tag_name().is_one_of(HTML::TagNames::plaintext)) {
|
||||||
parser.m_tokenizer.switch_to({}, HTMLTokenizer::State::PLAINTEXT);
|
parser.m_tokenizer.switch_to({}, HTMLTokenizer::State::PLAINTEXT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue