Skip to content

Commit

Permalink
xhr2 test. fixes Modernizr#385
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed May 11, 2012
1 parent 99be5bc commit 68ab135
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 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 68ab135

Please sign in to comment.