From e9b9f89e707cf8e64377bc221ed5297ae5dc1f36 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Tue, 28 Sep 2021 23:50:10 +0330 Subject: LibWeb: Use Document::parse_url() for preload links --- Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp index 4811a8319f..29548d04b2 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp @@ -40,7 +40,7 @@ void HTMLLinkElement::inserted() if (m_relationship & Relationship::Preload) { // FIXME: Respect the "as" attribute. LoadRequest request; - request.set_url(attribute(HTML::AttributeNames::href)); + request.set_url(document().parse_url(attribute(HTML::AttributeNames::href))); m_preload_resource = ResourceLoader::the().load_resource(Resource::Type::Generic, request); } } -- cgit v1.2.3