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