1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 13:35:07 +00:00

LibWeb: Port HTMLOptionElement interface from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-09-03 15:51:13 +12:00 committed by Tim Flynn
parent c405ba6b08
commit 7206f1777a
4 changed files with 13 additions and 16 deletions

View file

@ -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) }));
}
}