From cafb542da901254fb5dff0f7bc97f0d2521c45a7 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Sat, 20 Oct 2012 21:24:07 -0400 Subject: [PATCH] Alternate fix for #11426; check responseText. Close gh-843. --- src/ajax/xhr.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.39.5