1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 01:37:34 +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

@ -62,7 +62,7 @@ ErrorOr<NonnullRefPtr<SVGDecodedImageData>> SVGDecodedImageData::create(Page& ho
.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_with_uncertain_encoding(document, data);