Browse Source

LibWeb: Remove duplicate if branch in fragment parsing.

I noticed in the video the duplicate `if` check. This commit removes
the duplicated branch.
theazgra 5 years ago
parent
commit
6a401a9bde
1 changed files with 0 additions and 3 deletions
  1. 0 3
      Libraries/LibWeb/Parser/HTMLDocumentParser.cpp

+ 0 - 3
Libraries/LibWeb/Parser/HTMLDocumentParser.cpp

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