mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 16:46:58 +00:00
LibWeb: Fix step within reconstruct the active elements
In step 4 of the "renstruct the active formatting elements" algorithm it says: Rewind: If there are no entries before entry in the list of active formatting elements, then jump to the step labeled create. Prior to this patch, the implementation accorded to the spec only for the first loop iteration.
This commit is contained in:
committed by
Andreas Kling
parent
8b3eb4535d
commit
b85ab86c84
@@ -430,7 +430,7 @@ void HTMLDocumentParser::reconstruct_the_active_formatting_elements()
|
||||
RefPtr<Element> entry = m_list_of_active_formatting_elements.at(index);
|
||||
|
||||
Rewind:
|
||||
if (m_list_of_active_formatting_elements.size() == 1) {
|
||||
if (index == 0) {
|
||||
goto Create;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user