modernizr
Version:
Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
21 lines (20 loc) • 554 B
JavaScript
/*!
{
"name": "XHR responseType='json'",
"property": "xhrresponsetypejson",
"tags": ["network"],
"notes": [{
"name": "WHATWG Spec",
"href": "https://xhr.spec.whatwg.org/#the-responsetype-attribute"
}, {
"name": "Explanation of xhr.responseType='json'",
"href": "https://mathiasbynens.be/notes/xhr-responsetype-json"
}]
}
!*/
/* DOC
Tests for XMLHttpRequest xhr.responseType='json'.
*/
define(['Modernizr', 'testXhrType'], function(Modernizr, testXhrType) {
Modernizr.addTest('xhrresponsetypejson', testXhrType('json'));
});