mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:48:14 +00:00
LibWeb: Use Document::parse_url() for preload links
This commit is contained in:
parent
3ec39fc62e
commit
e9b9f89e70
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue