diff --git a/lib/jsdom/living/nodes/HTMLInputElement-impl.js b/lib/jsdom/living/nodes/HTMLInputElement-impl.js index 20878072ea..0de3afe615 100644 --- a/lib/jsdom/living/nodes/HTMLInputElement-impl.js +++ b/lib/jsdom/living/nodes/HTMLInputElement-impl.js @@ -200,7 +200,7 @@ class HTMLInputElementImpl extends HTMLElementImpl { fireAnEvent("input", this, undefined, { bubbles: true }); fireAnEvent("change", this, undefined, { bubbles: true }); } - } else if (form && this.type === "submit") { + } else if (form && (this.type === "submit" || this.type === "image")) { form._doRequestSubmit(this); } else if (form && this.type === "reset") { form._doReset(); diff --git a/test/web-platform-tests/to-upstream/html/semantics/forms/form-submission-0/form-submitters.html b/test/web-platform-tests/to-upstream/html/semantics/forms/form-submission-0/form-submitters.html new file mode 100644 index 0000000000..8cc6be4f41 --- /dev/null +++ b/test/web-platform-tests/to-upstream/html/semantics/forms/form-submission-0/form-submitters.html @@ -0,0 +1,60 @@ + + +HTML Test: form submitters + + + + + +