mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:07:34 +00:00
LibWeb: Don't try to load anything if src is empty in <img>
Previously we tried to load "" if the src was present but empty and essentially only waited for RequestServer to time out.
This commit is contained in:
parent
708f835477
commit
9a1ac662f1
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ void HTMLImageElement::parse_attribute(const FlyString& name, const String& valu
|
||||||
{
|
{
|
||||||
HTMLElement::parse_attribute(name, value);
|
HTMLElement::parse_attribute(name, value);
|
||||||
|
|
||||||
if (name == HTML::AttributeNames::src)
|
if (name == HTML::AttributeNames::src && !value.is_empty())
|
||||||
m_image_loader.load(document().complete_url(value));
|
m_image_loader.load(document().complete_url(value));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue