Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does IE10 support FormData()?

I've read (here) that IE10 supports FormData(). But when I type this into the IE10 JavaScript console:

foo = new FormData();

I get the error, "FormData not defined"

Does IE10 support FormData() or doesn't it? Is there a trick to getting it to work in IE10?

like image 770
pk1557 Avatar asked Feb 19 '13 02:02

pk1557


1 Answers

I can confirm that it does - running your code in the console on this page works fine.

I will therefore hypothesize that you are in Quirks Mode, and therefore the browser is pretending it doesn't know it to be compatible with said Mode.

Make sure your page has a valid <!DOCTYPE html> at the start and no errors to fall back into quirks mode.

like image 108
Niet the Dark Absol Avatar answered Sep 20 '22 01:09

Niet the Dark Absol