Skip to main content

Bug Tracker

Side navigation

#2365 closed bug (worksforme)

Opened February 19, 2008 02:07PM UTC

Closed March 18, 2009 03:53AM UTC

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:
Blocked by: Blocking:


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)

Attachments (0)
Change History (4)

Changed March 15, 2008 01:48PM UTC by spinal007 comment:1

Have you tried...

1. var result = $('result', data).text();


Changed May 06, 2008 05:30PM UTC by flesler comment:2

>returns a <result>blahblah</result> result

It doesn't include a starting "xml" tag ? if so, that could be it.

Changed May 09, 2008 03:20AM UTC by davidserduke comment:3

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.

Changed March 18, 2009 03:53AM UTC by brandon comment:4

resolution: → worksforme
status: newclosed

Please feel free to repoen with a test case illustrating the issue you are having.