Bug Tracker

Modify

Ticket #9361 (closed bug: invalid)

Opened 2 years ago

Last modified 15 months ago

retrieving XML from XML Document not working in ie9

Reported by: richdavies73@… Owned by: richdavies73@…
Priority: low Milestone: 1.next
Component: manipulation Version: 1.6.1
Keywords: Cc:
Blocking: Blocked by:

Description

When trying to retrieve the xml string for an element, the code which was working in ie8 does not work with ie9

$(XMLdata).find('CFPersonRow').each(function(){
                                 
    var pid = $(this).find('PersonId').text();
       
    myData[i] = {   id:$(this).find('PersonId').text(), 
                    name:$(this).find('Name').text(),                                                  dob:$(this).find('BirthDate').text(),
                                address:$(this).find('MainAddress').text(),
                                telNo:$(this).find('MainTelNumber').text()
                        };
                
                personsArray[pid] = $(this)[0].xml;
                i++;
            });  

$(this)[0].xml was returns the full XML string in compatibility mode but when using ie9 mode the result is 'undefined'.

testes in 1.6.1 and 1.5.2 with same results

Change History

comment:1 Changed 2 years ago by dmethvin

  • Owner set to richdavies73@…
  • Status changed from new to pending

This needs a complete test case. Is XMLData a string or is it an XML document? The i variable isn't really a global, is it?

comment:3 Changed 2 years ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from pending to closed
  • Component changed from unfiled to manipulation

This is not a jQuery core issue, but a browser issue that we do not support. There are other ways to retrieve what you are after that will work across browsers.  http://jsfiddle.net/timmywil/ptuAB/3/

comment:4 Changed 2 years ago by richdavies73@…

Thanks for the response, but this solution still does not work with IE9 unless in compatibility mode. Do you have a date on when IE9 will be supported?

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.