mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:18:11 +00:00
AK: Port URL::m_query from DeprecatedString to String
This commit is contained in:
parent
55a01e72ca
commit
21fe86d235
14 changed files with 63 additions and 75 deletions
|
@ -253,7 +253,7 @@ WebIDL::ExceptionOr<String> Location::search() const
|
|||
auto url = this->url();
|
||||
|
||||
// 2. If this's url's query is either null or the empty string, return the empty string.
|
||||
if (url.query().is_empty())
|
||||
if (!url.query().has_value() || url.query()->is_empty())
|
||||
return String {};
|
||||
|
||||
// 3. Return "?", followed by this's url's query.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue