1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 19:44:58 +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:
Andreas Kling 2019-10-19 20:01:51 +02:00
parent f970578cd4
commit b472229781

View file

@ -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;
}