1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 17:05:10 +00:00

LibWeb: Port FormDataEvent to new String

This commit is contained in:
Kenneth Myhra 2023-03-05 10:53:19 +01:00 committed by Linus Groh
parent eed69e5093
commit bb7ae423d5
4 changed files with 7 additions and 7 deletions

View file

@ -164,7 +164,7 @@ WebIDL::ExceptionOr<Optional<Vector<XHR::FormDataEntry>>> construct_entry_list(J
// 7. Fire an event named formdata at form using FormDataEvent, with the formData attribute initialized to form data and the bubbles attribute initialized to true.
FormDataEventInit init {};
init.form_data = form_data;
auto form_data_event = TRY(FormDataEvent::construct_impl(realm, HTML::EventNames::formdata, init));
auto form_data_event = TRY(FormDataEvent::construct_impl(realm, String::from_deprecated_string(HTML::EventNames::formdata).release_value_but_fixme_should_propagate_errors(), init));
form_data_event->set_bubbles(true);
form.dispatch_event(form_data_event);