var status,
statusText,
responseHeaders,
- responses,
- xml;
+ responses;
// Firefox throws exceptions when accessing properties
// of an xhr when a network error occurred
} 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" ) {
});
+ ajaxTest( "#13276 - jQuery.ajax() - compatibility between XML documents from ajax requests and parsed string", 1, {
+ url: "data/dashboard.xml",
+ dataType: "xml",
+ success: function( ajaxXML ) {
+ var parsedXML = jQuery( jQuery.parseXML("<tab title=\"Added\">blibli</tab>") ).find("tab");
+ ajaxXML = jQuery( ajaxXML );
+ try {
+ ajaxXML.find("infowindowtab").append( parsedXML );
+ } catch( e ) {
+ strictEqual( e, undefined, "error" );
+ return;
+ }
+ strictEqual( ajaxXML.find("tab").length, 3, "Parsed node was added properly" );
+ }
+ });
+
//----------- jQuery.ajaxPrefilter()
ajaxTest( "jQuery.ajaxPrefilter() - abort", 1, {