mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 07:36:50 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user