#9361 closed bug (invalid)
retrieving XML from XML Document not working in ie9
Reported by: | Owned by: | ||
---|---|---|---|
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 12 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:3 Changed 12 years ago by
Component: | unfiled → manipulation |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | pending → closed |
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 12 years ago by
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.
This needs a complete test case. Is
XMLData
a string or is it an XML document? Thei
variable isn't really a global, is it?