mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
LibHTML: Do DOM tree fixup before firing insertion callbacks
There's no reason to run the callbacks before fixing up the tree.
This commit is contained in:
parent
f970578cd4
commit
b472229781
Notes:
sideshowbarker
2024-07-19 11:37:50 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/b4722297817
1 changed files with 1 additions and 3 deletions
|
@ -317,9 +317,7 @@ NonnullRefPtr<Document> parse_html(const StringView& html, const URL& url)
|
|||
node.inserted_into(*node.parent());
|
||||
};
|
||||
|
||||
fire_insertion_callbacks(*document);
|
||||
|
||||
document->fixup();
|
||||
|
||||
fire_insertion_callbacks(*document);
|
||||
return document;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue