From: Oleg Gaidarenko Date: Sun, 21 Oct 2012 01:24:07 +0000 (-0400) Subject: Alternate fix for #11426; check responseText. Close gh-843. X-Git-Tag: 1.9.0b1~162 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cafb542da901254fb5dff0f7bc97f0d2521c45a7;p=jquery.git Alternate fix for #11426; check responseText. Close gh-843. --- diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js index a24feaf1a..d3422ec79 100644 --- a/src/ajax/xhr.js +++ b/src/ajax/xhr.js @@ -148,9 +148,8 @@ if ( jQuery.support.ajax ) { // When requesting binary data, IE6-9 will throw an exception // on any attempt to access responseText (#11426) - try { + if ( typeof xhr.responseText === "string" ) { responses.text = xhr.responseText; - } catch( err ) { } // Firefox throws an exception when accessing