mirror of
https://github.com/jquery/jquery.git
synced 2026-02-06 19:49:11 -05:00
Alternate fix for #11426; check responseText. Close gh-843.
This commit is contained in:
committed by
Dave Methvin
parent
8076a33bd8
commit
cafb542da9
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user