LibWeb: Implement HTMLFormElement.requestSubmit()

This can be used to submit a form using a specific submit button.
This commit is contained in:
Tim Ledbetter 2024-02-15 18:29:53 +00:00 committed by Tim Flynn
parent 94149db073
commit 816d24f647
Notes: sideshowbarker 2024-07-17 22:01:16 +09:00
5 changed files with 72 additions and 1 deletions

View file

@ -65,6 +65,9 @@ public:
// NOTE: This is for the JS bindings. Use submit_form instead.
WebIDL::ExceptionOr<void> submit();
// NOTE: This is for the JS bindings. Use submit_form instead.
WebIDL::ExceptionOr<void> request_submit(JS::GCPtr<Element> submitter);
// NOTE: This is for the JS bindings. Use submit_form instead.
void reset();