mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 23:57:25 +00:00
LibHTML: Store the HTML parser input along with the created Document
This will allow us to "view source" later on, long after parsing has finished and turned it into a DOM.
This commit is contained in:
@@ -334,6 +334,7 @@ RefPtr<Document> parse_html_document(const StringView& html, const URL& url)
|
||||
{
|
||||
auto document = adopt(*new Document);
|
||||
document->set_url(url);
|
||||
document->set_source(html);
|
||||
|
||||
if (!parse_html_document(html, *document, *document))
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user