mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
Ladybird+LibWeb: Use old error.html template for navigation errors again
This commit is contained in:
parent
8f2319e966
commit
04ee15a5ad
Notes:
sideshowbarker
2024-07-17 04:34:25 +09:00
Author: https://github.com/bplaat
Commit: 04ee15a5ad
Pull-request: https://github.com/SerenityOS/serenity/pull/21176
Reviewed-by: https://github.com/ADKaster ✅
7 changed files with 38 additions and 6 deletions
|
@ -344,7 +344,8 @@ JS::GCPtr<DOM::Document> create_document_for_inline_content(JS::GCPtr<HTML::Navi
|
|||
// 6. Either associate document with a custom rendering that is not rendered using the normal Document rendering rules, or mutate document until it represents the content the
|
||||
// user agent wants to render.
|
||||
auto parser = HTML::HTMLParser::create(document, content_html, "utf-8");
|
||||
parser->run(AK::URL("about:error"));
|
||||
document->set_url(AK::URL("about:error"));
|
||||
parser->run();
|
||||
|
||||
// 7. Return document.
|
||||
return document;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue