mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
LibWeb: Implement algorithm 'construct the entry list given a form'
This commit is contained in:
committed by
Linus Groh
parent
9d13537fc7
commit
fc886b4556
@@ -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&);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user