mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
LibURL+LibWeb: Port URL::complete_url to Optional
Removing one more source of the URL::is_valid API.
This commit is contained in:
committed by
Tim Ledbetter
parent
356728b1e0
commit
53826995f6
@@ -619,7 +619,9 @@ String HTMLFormElement::action() const
|
||||
return document().url_string();
|
||||
}
|
||||
|
||||
return document().base_url().complete_url(form_action_attribute.value()).to_string();
|
||||
if (auto maybe_url = document().base_url().complete_url(form_action_attribute.value()); maybe_url.has_value())
|
||||
return maybe_url->to_string();
|
||||
return {};
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#dom-fs-action
|
||||
|
||||
Reference in New Issue
Block a user