mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-24 21:45:20 +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
Notes:
sideshowbarker
2024-07-19 05:22:20 +09:00
Author: https://github.com/theazgra Commit: https://github.com/SerenityOS/serenity/commit/6a401a9bde7 Pull-request: https://github.com/SerenityOS/serenity/pull/2631
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)) {
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue