[java] Dispatch form "submit" event on window to prevent a form double submission
@@ -365,7 +365,7 @@ public W3CHttpCommandCodec() {
"if (!form.ownerDocument) { throw Error('Unable to find owning document'); }\n" +
"var e = form.ownerDocument.createEvent('Event');\n" +
"e.initEvent('submit', true, true);\n" +
- "if (form.dispatchEvent(e)) { HTMLFormElement.prototype.submit.call(form) }\n",
+ "if (form.ownerDocument.dispatchEvent(e)) { HTMLFormElement.prototype.submit.call(form) }\n",
asElement(parameters.get("id")));
default:
