1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 18:45:07 +00:00

LibWeb: Implement algorithm 'construct the entry list given a form'

This commit is contained in:
Kenneth Myhra 2023-02-03 21:50:31 +01:00 committed by Linus Groh
parent 9d13537fc7
commit fc886b4556
3 changed files with 151 additions and 6 deletions

View file

@ -10,11 +10,14 @@
namespace Web::HTML {
using HashMapWithVectorOfFormDataEntryValue = HashMap<DeprecatedString, Vector<XHR::FormDataEntryValue>>;
struct Entry {
String name;
Variant<JS::NonnullGCPtr<FileAPI::File>, String> value;
};
WebIDL::ExceptionOr<Entry> create_entry(JS::Realm& realm, String const& name, Variant<JS::NonnullGCPtr<FileAPI::Blob>, String> const& value, Optional<String> const& filename = {});
WebIDL::ExceptionOr<Optional<HashMapWithVectorOfFormDataEntryValue>> construct_entry_list(JS::Realm&, HTMLFormElement&);
}