Bug Tracker

Opened 11 years ago

Closed 11 years ago

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

Description (last modified by davidserduke)

$(xml).find('test').each( function(i){
//[]
});

Works in Firefox and Opera but not in Internet Explorer

Attachments (3)

test.html (676 bytes) - added by Nightflyer 11 years ago.
routen.xml (264 bytes) - added by Nightflyer 11 years ago.
ie7bodyinnerHTML.jpg (9.4 KB) - added by davidserduke 11 years ago.

Download all attachments as: .zip

Change History (7)

Changed 11 years ago by Nightflyer

Attachment: test.html added

Changed 11 years ago by Nightflyer

Attachment: routen.xml added

comment:1 Changed 11 years ago by davidserduke

Description: modified (diff)

Changed 11 years ago by davidserduke

Attachment: ie7bodyinnerHTML.jpg added

comment:2 Changed 11 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 11 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.

comment:4 Changed 11 years ago by davidserduke

Resolution: invalid
Status: newclosed

Closed at request of author.

Note: See TracTickets for help on using tickets.