Ticket #2365 (closed bug: worksforme)
xml selector issue with IE7 (IE6 also ?)
| Reported by: | lideln | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.2.4 |
| Component: | ajax | Version: | 1.2.3 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Hi,
I tried my jQuery ajax code (that was working fine in firefox) under IE7. When trying to get a tag content from my xml answer, I get empty string (NOT in firefox but in IE7). This is a simple request that returns a <result>blahblah</result> result, and I try to get result with "var result = $('result', data).text();".
Maybe I missed something, but it does not work (but when displaying the response text, I can see it is good - which is normal since it works in FF)
Change History
comment:2 Changed 5 years ago by flesler
returns a <result>blahblah</result> result
It doesn't include a starting "xml" tag ? if so, that could be it.
comment:3 Changed 5 years ago by davidserduke
Needs more of a test case. What exactly is the 'data' variable? Is it an XML doc or the text string or $(--text string--)? The second two will fail. The first should work. I believe the starting XML tag is optional, but what is the mimetype returned by the web server? In short, this needs a better test case.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Have you tried...