Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#9361 closed bug (invalid)

retrieving XML from XML Document not working in ie9

Reported by: [email protected] Owned by: [email protected]
Priority: low Milestone: 1.next
Component: manipulation Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:

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 (4)

comment:1 Changed 10 years ago by dmethvin

Owner: set to [email protected]
Status: newpending

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 10 years ago by timmywil

Component: unfiledmanipulation
Priority: undecidedlow
Resolution: invalid
Status: pendingclosed

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 10 years ago by [email protected]

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?

Note: See TracTickets for help on using tickets.