Ticket #3595 (closed bug: invalid)
each() doesn't work properly in IE
| Reported by: | Nightflyer | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | effects | Version: | 1.2.6 |
| Keywords: | each explorer | Cc: | |
| Blocking: | Blocked by: |
Description (last modified by davidserduke) (diff)
$(xml).find('test').each( function(i){
//[]
});
Works in Firefox and Opera but not in Internet Explorer
Attachments
Change History
comment:2 Changed 5 years ago by davidserduke
I tried it in IE7 and it seemed to work. I attached a screen shot of:
javascript:alert(document.body.innerHTML)
Can you try that?
comment:3 Changed 5 years ago by Nightflyer
Well, I solved the problem. It's all about the header of the XML-file. If a script creates the XML it's important to set the correct header to it:
header('Content-Type: text/xml');
FF and Opera hasn't problems without, but the IE(6-8) goes on strike - even when XML is correctly declared as the format witch would be sent with the $.get()-action. Bug issue might be closed.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

