diff --git a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp index cd4a40c5dd..2b84bbfa05 100644 --- a/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp +++ b/Libraries/LibWeb/Parser/HTMLDocumentParser.cpp @@ -430,7 +430,7 @@ void HTMLDocumentParser::reconstruct_the_active_formatting_elements() RefPtr entry = m_list_of_active_formatting_elements.at(index); Rewind: - if (m_list_of_active_formatting_elements.size() == 1) { + if (index == 0) { goto Create; }