Permalink
Browse files

xhr2 test. fixes #385

  • Loading branch information...
1 parent db60ffb commit 22912a17e553782ef0244156d59339cbb5e6e619 @paulirish paulirish committed May 11, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 feature-detects/network-xhr2.js
@@ -0,0 +1,13 @@
+
+
+// XML HTTP Request Level 2
+// www.w3.org/TR/XMLHttpRequest2/
+
+// Much more details at github.com/Modernizr/Modernizr/issues/385
+
+// all three of these details report consistently across all target browsers:
+// !!(window.ProgressEvent);
+// !!(window.FormData);
+// window.XMLHttpRequest && "withCredentials" in new XMLHttpRequest;
+
+Modernizr.addTest('xhr2', 'FormData' in window);

0 comments on commit 22912a1

Please sign in to comment.