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:
parent
9d13537fc7
commit
fc886b4556
3 changed files with 151 additions and 6 deletions
|
@ -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&);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue