mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +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:
parent
8b3eb4535d
commit
b85ab86c84
Notes:
sideshowbarker
2024-07-19 06:06:14 +09:00
Author: https://github.com/kevmeyer 🔰 Commit: https://github.com/SerenityOS/serenity/commit/b85ab86c849 Pull-request: https://github.com/SerenityOS/serenity/pull/2405
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue