Form post to window created with window.open targets current window instead

Confirmed Issue #8781723 • Assigned to Travis L.

Details

Created
Sep 7, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
38.14393
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

  1. Create a new window with window.open:

window.open("", "popup", “width=200;height=200”);

  1. Create a form with the window as the target:

var form = document.createElement(“form”);
(Add some input fields as parameters here)
form.method = "POST";
form.action = (some URL that can handle the form data);
form.target = "popup";
document.body.appendChild(form);
form.submit();

This will correctly open the window, but the form submit will happen to the current window, instead of the the newly created window (the target is ignored).

Works fine in IE11, Chrome, Firefox, Safari.

Similar previous IE11 issue: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/107108/.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Brad E.”

      Changed Assigned To to “Travis L.”

      Changed Status to “Confirmed”

    You need to sign in to your Microsoft account to add a comment.

    Sign in