aboutsummaryrefslogtreecommitdiffstats
path: root/src/ajax
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2013-01-21 02:44:16 +0100
committerjaubourg <j@ubourg.net>2013-01-21 02:44:16 +0100
commitb83081ba644b70876a64b3abd7eb11109c1e7a1d (patch)
tree28cc16c5fb5fc835753eedc71819aa9f8f0fcbb7 /src/ajax
parentdf47eb73f3d3829834137258acbd448a6a9d2440 (diff)
downloadjquery-b83081ba644b70876a64b3abd7eb11109c1e7a1d.tar.gz
jquery-b83081ba644b70876a64b3abd7eb11109c1e7a1d.zip
Never use the XML as parsed by the XHR instance. Use raw text instead and let the ajax conversion logic do the trick. -20 min/gzipped. Fixes #13276. Unit test added.
Diffstat (limited to 'src/ajax')
-rw-r--r--src/ajax/xhr.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/ajax/xhr.js b/src/ajax/xhr.js
index 3c1fde374..2353392f6 100644
--- a/src/ajax/xhr.js
+++ b/src/ajax/xhr.js
@@ -105,8 +105,7 @@ if ( xhrSupported ) {
var status,
statusText,
responseHeaders,
- responses,
- xml;
+ responses;
// Firefox throws exceptions when accessing properties
// of an xhr when a network error occurred
@@ -136,14 +135,8 @@ if ( xhrSupported ) {
} else {
responses = {};
status = xhr.status;
- xml = xhr.responseXML;
responseHeaders = xhr.getAllResponseHeaders();
- // Construct response list
- if ( xml && xml.documentElement /* #4958 */ ) {
- responses.xml = xml;
- }
-
// When requesting binary data, IE6-9 will throw an exception
// on any attempt to access responseText (#11426)
if ( typeof xhr.responseText === "string" ) {