/*!
{
  "name": "XML HTTP Request Level 2 XHR2",
  "property": "xhr2",
  "tags": ["network"],
  "notes": [{
    "name": "W3 Spec",
    "href": "http://www.w3.org/TR/XMLHttpRequest2/"
  },{
    "name": "Details on Related Github Issue",
    "href": "http://github.com/Modernizr/Modernizr/issues/385"
  }]
}
!*/
/* DOC

Tests for XHR2.
*/
define(['Modernizr'], function( Modernizr ) {
  // 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);
});

@@ -500,43 +500,9 @@
 /   
-!!(window.FormData);%0A  //   window.
+'
 XMLH
@@ -515,13 +515,24 @@
 uest
+' in window
  && 
-%22
+'
 with
@@ -542,17 +542,17 @@
 dentials
-%22
+'
  in new 
@@ -565,17 +565,16 @@
 pRequest
-;
 %0A  Moder
@@ -599,27 +599,78 @@
 ', '
-FormData' in window
+XMLHttpRequest' in window && 'withCredentials' in new XMLHttpRequest()
 );%0A%7D

make xhr2 test more accurate with FF3.6