diff options
author | Luke <luke.wilde@live.co.uk> | 2020-11-13 11:16:28 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-14 10:14:03 +0100 |
commit | ed2689c00a08dbed5deac559e5b77d61792c720c (patch) | |
tree | 59b0f4e0cd160585ce2cd7917b1c722110926cff /Libraries/LibWeb/Loader | |
parent | f3d2053bff829be79f6ee8ffc6e85b5bebdb8715 (diff) | |
download | serenity-ed2689c00a08dbed5deac559e5b77d61792c720c.zip |
LibWeb: Use standardized encoding names, add encoding attribute to document
Diffstat (limited to 'Libraries/LibWeb/Loader')
-rw-r--r-- | Libraries/LibWeb/Loader/FrameLoader.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Libraries/LibWeb/Loader/FrameLoader.cpp b/Libraries/LibWeb/Loader/FrameLoader.cpp index 54cbe6edf7..c5c417e7cc 100644 --- a/Libraries/LibWeb/Loader/FrameLoader.cpp +++ b/Libraries/LibWeb/Loader/FrameLoader.cpp @@ -135,9 +135,7 @@ RefPtr<DOM::Document> FrameLoader::create_document_from_mime_type(const ByteBuff RefPtr<DOM::Document> document; if (mime_type == "text/html" || mime_type == "image/svg+xml") { - HTML::HTMLDocumentParser parser(data, encoding); - parser.run(url); - document = parser.document(); + document = HTML::parse_html_document(data, url, encoding); } else if (mime_type.starts_with("image/")) { document = create_image_document(data, url); } else if (mime_type == "text/plain") { |