I have a textarea:
<textarea cols="20" id="testtextbox" name="testtextbox" rows="2">test</textarea>
and I POST it by building a FormData object:
var newForm = $('<form></form>').append($("#testtextbox"))
var formdata = new FormData(newForm.get(0));
var xhr = new XMLHttpRequest();
xhr.open('POST', '/', true);
xhr.send(formdata);
I would expect this to post the value of that one textarea, which works on Chrome and Firefox. However, on Edge 42.17134 the POSTed request body is:
-----------------------------7e2203930476
Content-Disposition: form-data; name="testtextbox"
-----------------------------7e2203930476--
This also works fine in previous versions of Edge. Am I doing something wrong? As far as I can tell I'm not relying on any deprecated features.