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
Supported2 of 2 checks work.
Web IDL existence (coverage):
- FormData: interface present; 11 of 11 members present.
happy-dom 21.0.3
Partial1 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"
- Result:
jsdom 30.1.3
Supported2 of 2 checks work.
Web IDL existence (coverage):
- FormData: interface present; 11 of 11 members present.
linkedom 0.18.13
Stub0 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.
- Result:
-
new FormData(form, submitter) includes the submitter button's name and value.
- Result:
TypeError: FormData constructor: Argument 1 could not be converted to: undefined.
- Result:
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.