Bug Tracker

Modify

Ticket #3318 (closed bug: invalid)

Opened 5 years ago

Last modified 4 years ago

find doesn't work in IE but works fine in Firefox

Reported by: ericerau Owned by:
Priority: minor Milestone: 1.3
Component: ajax Version: 1.2.6
Keywords: Cc: ericerau, flesler
Blocking: Blocked by:

Description

var s = "<Orders>" +

" <Order>" + " <OrderNo>12345</OrderNo>" + " <Path>this is the path value</Path>" + " <Base64>asdfasdfasdf.....sgdfgsdfg</Base64>" + " </Order>" + "</Order>";

alert($(s).find('Path').text())

This doesn't work in IE, but works fine in firefox. The code has been modified to do the test. In reality I didn't build the xml string like that. It was the result of a web service call. I considered a blocker because it makes the application unusable for Ajax. I have a post for this on experts exchange, check it out here:

 http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/XML/Q_23696687.html

If you have any questions email me at ericerau@…

Change History

comment:1 Changed 5 years ago by flesler

  • Cc ericerau, flesler added
  • need changed from Review to Test Case
  • Priority changed from blocker to minor
  • Component changed from core to ajax
  • Milestone changed from 1.2.5 to 1.3

Can you please provide a test case ? that is, a small html file with the minimum html/css/js necessary to reproduce the problem. Thanks

comment:3 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

Yes, most likely IE is not happy trying to parse XML with its tag-soup parser. Try using the technique in the link above and reopen the ticket if a proper XML parser doesn't fix the issue.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.