Bug Tracker

Opened 13 years ago

Closed 12 years ago

#6567 closed bug

[XML-ATOM Feed] request with Win 7 / IE 8

Reported by: egokamoto Owned by: egokamoto
Priority: low Milestone: 1.4.3
Component: ajax Version: 1.4.2
Keywords: xml atom feed ie8 Cc:
Blocked by: Blocking:

Description

When I do a request in 'xml' mode with the code:


options = jQuery.extend({

url: null, data: null, success: null

}, options);

if(options.url) {

$.ajax({

type: 'GET', url: options.url, data: options.data, dataType: 'xml', success: function(xml) {

var feed = new JFeed(xml); if(jQuery.isFunction(options.success)) options.success(feed);

}

});

}


using a ATOM feed url, the IE8 cannot parse it, then, I added the following code at line 5346:


httpData: function( xhr, type, s ) {

var ct = xhr.getResponseHeader("content-type")
"",
xml = type === "xml"
!type && ct.indexOf("xml") >= 0,

data = xml ? xhr.responseXML : xhr.responseText;

>>>> My changes if (xml && !data.documentElement && xhr.responseText)

data.loadXML(xhr.responseText);

<<<< ended my changes

if ( xml && data.documentElement.nodeName === "parsererror" ) {

jQuery.error( "parsererror" );

}


Change History (4)

comment:1 Changed 13 years ago by dmethvin

Component: unfiledajax

comment:2 Changed 12 years ago by addyosmani

Keywords: xml atom feed ie8 added
Priority: low

You could reduce this to a test case on jsFiddle so that we can test it? Thanks!

comment:3 Changed 12 years ago by SlexAxton

Owner: set to egokamoto
Status: newpending

comment:4 Changed 12 years ago by trac-o-bot

Status: pendingclosed

Automatically closed due to 14 days of inactivity.

Note: See TracTickets for help on using tickets.