LibWeb/CSS: Avoid URL validity check parsing CSS URLs

This commit is contained in:
Shannon Booth 2025-04-19 17:05:40 +12:00 committed by Tim Flynn
parent 733dfdaa05
commit f48b760011
Notes: github-actions[bot] 2025-04-19 11:19:56 +00:00
2 changed files with 3 additions and 3 deletions

View file

@ -1871,9 +1871,9 @@ bool Parser::is_parsing_svg_presentation_attribute() const
// FIXME: URLs shouldn't be completed during parsing, but when used.
Optional<::URL::URL> Parser::complete_url(StringView relative_url) const
{
if (!m_url.is_valid())
if (!m_url.has_value())
return ::URL::Parser::basic_parse(relative_url);
return m_url.complete_url(relative_url);
return m_url->complete_url(relative_url);
}
}