mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-18 00:02:01 +00:00
LibWeb: Port HTMLOptionElement interface from DeprecatedString to String
This commit is contained in:
parent
c405ba6b08
commit
7206f1777a
Notes:
sideshowbarker
2024-07-17 01:04:03 +09:00
Author: https://github.com/shannonbooth
Commit: 7206f1777a
Pull-request: https://github.com/SerenityOS/serenity/pull/20926
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/trflynn89 ✅
4 changed files with 13 additions and 16 deletions
|
@ -114,7 +114,7 @@ WebIDL::ExceptionOr<Optional<Vector<XHR::FormDataEntry>>> construct_entry_list(J
|
|||
for (auto const& option_element : select_element->list_of_options()) {
|
||||
if (option_element->selected() && !option_element->disabled()) {
|
||||
auto option_name = TRY_OR_THROW_OOM(vm, String::from_deprecated_string(option_element->name()));
|
||||
auto option_value = TRY_OR_THROW_OOM(vm, String::from_deprecated_string(option_element->value()));
|
||||
auto option_value = option_element->value();
|
||||
TRY_OR_THROW_OOM(vm, entry_list.try_append(XHR::FormDataEntry { .name = move(option_name), .value = move(option_value) }));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue