diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-09-28 23:50:10 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-28 22:32:31 +0200 |
commit | e9b9f89e707cf8e64377bc221ed5297ae5dc1f36 (patch) | |
tree | 1630597b79a3fcec467958f2c3f0c190d51d64c6 /Userland/Libraries/LibWeb | |
parent | 3ec39fc62e5f7a5dd3ce5251777b909220f6cec3 (diff) | |
download | serenity-e9b9f89e707cf8e64377bc221ed5297ae5dc1f36.zip |
LibWeb: Use Document::parse_url() for preload links
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLLinkElement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |