Bug Tracker

Modify

Ticket #2949 (closed enhancement: duplicate)

Opened 6 years ago

Last modified 4 years ago

IE won't automatically load many XML content-types via responseXML

Reported by: dalangalma Owned by:
Priority: major Milestone: 1.3
Component: ajax Version: 1.2.5
Keywords: Cc:
Blocking: Blocked by:

Description

jQuery uses XHR's responseXML property to get the XML document from an XHR request. However, IE6 and IE6 will only work if you request an XML document served as text/xml or application/xml. A content type of application/atom+xml won't work, for example. You can see a demo here:

 http://brh.numbera.com/experiments/browserdemos/ie-load-atom.html

The jQuery docs mention a workaround:  http://docs.jquery.com/Specifying_the_Data_Type_for_AJAX_Requests

Since I use jQuery primarily to isolate me from these browser defects, it would be nice if jQuery could work around this as suggested. So if it was in IE and the content type wasn't a simple XML type, you could instantiate and fill a Microsoft.XMLDOM object on behalf of jQuery clients, transparently working around IE's issue.

Change History

comment:1 Changed 4 years ago by zevspitz

I've posted a solution at #4958

comment:2 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

Closed to consolidate at #4958.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.