Skip to main content

Bug Tracker

Side navigation

#9361 closed bug (invalid)

Opened May 20, 2011 09:12AM UTC

Closed May 20, 2011 04:49PM UTC

Last modified March 09, 2012 04:21AM UTC

retrieving XML from XML Document not working in ie9

Reported by: richdavies73@gmail.com Owned by: richdavies73@gmail.com
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

Attachments (0)
Change History (4)

Changed May 20, 2011 03:19PM UTC by dmethvin comment:1

owner: → richdavies73@gmail.com
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?

Changed May 20, 2011 04:21PM UTC by anonymous comment:2

Changed May 20, 2011 04:49PM UTC by timmywil comment:3

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/

Changed May 23, 2011 07:04AM UTC by richdavies73@gmail.com comment:4

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?