1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:28:12 +00:00

LibWeb: Update Document::create_and_initialize() to match latest spec

This commit is contained in:
Aliaksandr Kalenik 2023-04-07 02:32:56 +03:00 committed by Andreas Kling
parent 2c3bb26551
commit 359d8a3dc2
4 changed files with 44 additions and 49 deletions

View file

@ -165,7 +165,7 @@ void FrameLoader::load_html(StringView html, const AK::URL& url)
.browsing_context = browsing_context(),
.navigable = nullptr,
};
auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html", move(navigation_params)).release_value_but_fixme_should_propagate_errors();
auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html", navigation_params).release_value_but_fixme_should_propagate_errors();
browsing_context().set_active_document(document);
auto parser = HTML::HTMLParser::create(document, html, "utf-8");
@ -324,7 +324,7 @@ void FrameLoader::resource_did_load()
.browsing_context = browsing_context(),
.navigable = nullptr,
};
auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html", move(navigation_params)).release_value_but_fixme_should_propagate_errors();
auto document = DOM::Document::create_and_initialize(DOM::Document::Type::HTML, "text/html", navigation_params).release_value_but_fixme_should_propagate_errors();
document->set_url(url);
if (resource()->encoding().has_value())