Skip to main content

form.requestSubmit()

Submits a form as if a submit button were clicked: validation runs and a cancelable "submit" event fires. Specification: html.spec.whatwg.org/multipage/forms.html.

Results​

Probed on 2026-10-19 with Node.js v22.23.3.

warpdom 0.1.6​

Supported

3 of 3 checks work.

Report a wrong result for warpdom

happy-dom 21.0.3​

Supported

3 of 3 checks work.

Report a wrong result for happy-dom

jsdom 30.1.3​

Supported

3 of 3 checks work.

Report a wrong result for jsdom

linkedom 0.18.13​

Missing

Missing: in this engine's window, this does not hold: typeof form.requestSubmit === "function".

Report a wrong result for linkedom

Checks​

Exists when: typeof form.requestSubmit === "function".

  • submit-event-submitter: requestSubmit(button) fires a cancelable "submit" event whose submitter is that button. (spec)
  • validation-blocks: With an empty required field, requestSubmit() fires "invalid" on it and no "submit" event. (spec)
  • non-submit-button-throws: requestSubmit(el) with an element that is not a submit button throws a TypeError. (spec)