network-xhr2.js 388 B

12345678910111213
  1. // XML HTTP Request Level 2
  2. // www.w3.org/TR/XMLHttpRequest2/
  3. // Much more details at github.com/Modernizr/Modernizr/issues/385
  4. // all three of these details report consistently across all target browsers:
  5. // !!(window.ProgressEvent);
  6. // !!(window.FormData);
  7. // window.XMLHttpRequest && "withCredentials" in new XMLHttpRequest;
  8. Modernizr.addTest('xhr2', 'FormData' in window);