mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-07 19:52:55 +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: b472229781
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…
Add table
Add a link
Reference in a new issue