mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb: Fix typo in query of link element search params
Regressed in 21fe86d235
This commit is contained in:
committed by
Andreas Kling
parent
934340d845
commit
099a069b86
@@ -330,7 +330,7 @@ DeprecatedString HTMLHyperlinkElementUtils::search() const
|
||||
// 2. Let url be this element's url.
|
||||
|
||||
// 3. If url is null, or url's query is either null or the empty string, return the empty string.
|
||||
if (!m_url.has_value() || m_url->query().has_value() || m_url->query()->is_empty())
|
||||
if (!m_url.has_value() || !m_url->query().has_value() || m_url->query()->is_empty())
|
||||
return DeprecatedString::empty();
|
||||
|
||||
// 4. Return "?", followed by url's query.
|
||||
|
||||
Reference in New Issue
Block a user