mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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:
parent
356728b1e0
commit
53826995f6
Notes:
github-actions[bot]
2025-02-15 17:07:12 +00:00
Author: https://github.com/shannonbooth
Commit: 53826995f6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3586
Reviewed-by: https://github.com/tcl3 ✅
14 changed files with 57 additions and 52 deletions
|
@ -194,7 +194,9 @@ String FormAssociatedElement::form_action() const
|
|||
}
|
||||
|
||||
auto document_base_url = html_element.document().base_url();
|
||||
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 {};
|
||||
}
|
||||
|
||||
WebIDL::ExceptionOr<void> FormAssociatedElement::set_form_action(String const& value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue