diff options
Diffstat (limited to 'src/ajax')
-rw-r--r-- | src/ajax/parseXML.js | 3 | ||||
-rw-r--r-- | src/ajax/xhr.js | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/ajax/parseXML.js b/src/ajax/parseXML.js index 6599aaf5b..eb17dbd26 100644 --- a/src/ajax/parseXML.js +++ b/src/ajax/parseXML.js @@ -9,7 +9,8 @@ jQuery.parseXML = function( data ) { return null; } - // Support: IE9 + // Support: IE 9-11 only + // IE throws on parseFromString with invalid input. try { xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" ); } catch ( e ) { diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index db670ff15..9b8f47310 100644 --- a/src/ajax/xhr.js +++ b/src/ajax/xhr.js @@ -15,7 +15,7 @@ var xhrSuccessStatus = { // File protocol always yields status code 0, assume 200 0: 200, - // Support: IE9 + // Support: IE9 only // #1450: sometimes IE returns 1223 when it should be 204 1223: 204 }, @@ -79,7 +79,7 @@ jQuery.ajaxTransport( function( options ) { xhr.abort(); } else if ( type === "error" ) { - // Support: IE9 + // Support: IE9 only // On a manual native abort, IE9 throws // errors on any property access that is not readyState if ( typeof xhr.status !== "number" ) { @@ -115,7 +115,7 @@ jQuery.ajaxTransport( function( options ) { xhr.onload = callback(); errorCallback = xhr.onerror = callback( "error" ); - // Support: IE9 + // Support: IE9 only // Use onreadystatechange to replace onabort // to handle uncaught aborts if ( xhr.onabort !== undefined ) { |