|
@@ -317,10 +317,10 @@ void FrameLoader::load_html(StringView html, const AK::URL& url)
|
|
DOM::Document::Type::HTML,
|
|
DOM::Document::Type::HTML,
|
|
"text/html",
|
|
"text/html",
|
|
move(navigation_params));
|
|
move(navigation_params));
|
|
|
|
+ browsing_context().set_active_document(document);
|
|
|
|
|
|
auto parser = HTML::HTMLParser::create(document, html, "utf-8");
|
|
auto parser = HTML::HTMLParser::create(document, html, "utf-8");
|
|
parser->run(url);
|
|
parser->run(url);
|
|
- browsing_context().set_active_document(parser->document());
|
|
|
|
}
|
|
}
|
|
|
|
|
|
static String s_error_page_url = "file:///res/html/error.html";
|
|
static String s_error_page_url = "file:///res/html/error.html";
|