Skip to main content

new FormData(form)

Builds the form data set of a form the way submission would. Specification: xhr.spec.whatwg.org/.

Results​

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

warpdom 0.1.6​

Supported

2 of 2 checks work.

Web IDL existence (coverage):

  • FormData: interface present; 11 of 11 members present.
Report a wrong result for warpdom

happy-dom 21.0.3​

Partial

1 of 2 checks work.

Web IDL existence (coverage):

  • FormData: interface present; 11 of 11 members present.

  • Includes text inputs, checked checkboxes and selected options; skips unchecked, disabled and unnamed controls.

    • Result: entries: expected "a=1&b=on1&s=p&s=r", got "a=1&b=on1&s=p"
Report a wrong result for happy-dom

jsdom 30.1.3​

Supported

2 of 2 checks work.

Web IDL existence (coverage):

  • FormData: interface present; 11 of 11 members present.
Report a wrong result for jsdom

linkedom 0.18.13​

Stub

0 of 2 checks work.

The window's value is Node.js's own global (identical object), not the engine's implementation.

Web IDL existence (coverage):

  • FormData: interface present (Node.js's own global); 11 of 11 members present.

  • Includes text inputs, checked checkboxes and selected options; skips unchecked, disabled and unnamed controls.

    • Result: TypeError: FormData constructor: Argument 1 could not be converted to: undefined.
  • new FormData(form, submitter) includes the submitter button's name and value.

    • Result: TypeError: FormData constructor: Argument 1 could not be converted to: undefined.
Report a wrong result for linkedom

Checks​

Exists when: typeof window.FormData is defined.

  • controls: Includes text inputs, checked checkboxes and selected options; skips unchecked, disabled and unnamed controls. (spec)
  • submitter: new FormData(form, submitter) includes the submitter button's name and value. (spec)

Node.js globals​

Node.js defines FormData itself. Depending on the test runner and its environment, tests may see Node's version even where the engine's window has none; these results describe the engine's window only.