Skip to main content

Bug Tracker

Side navigation

#3595 closed bug (invalid)

Opened November 11, 2008 09:55PM UTC

Closed November 20, 2008 08:20AM UTC

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
$(xml).find('test').each( function(i){
//[]
});

Works in Firefox and Opera but not in Internet Explorer

Attachments (3)
  • ie7bodyinnerHTML.jpg (9.4 KB) - added by davidserduke November 12, 2008 07:18AM UTC.
  • routen.xml (0.3 KB) - added by Nightflyer November 11, 2008 09:56PM UTC.
  • test.html (0.7 KB) - added by Nightflyer November 11, 2008 09:56PM UTC.
Change History (4)

Changed November 12, 2008 07:08AM UTC by davidserduke comment:1

description: $(xml).find('test').each( function(i){ \ //[] \ }); \ \ Works in Firefox and Opera but not in Internet Explorer{{{ \ $(xml).find('test').each( function(i){ \ //[] \ }); \ }}} \ \ Works in Firefox and Opera but not in Internet Explorer

Changed November 12, 2008 07:19AM UTC by davidserduke comment:2

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?

Changed November 16, 2008 07:34PM UTC by Nightflyer comment:3

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.

Changed November 20, 2008 08:20AM UTC by davidserduke comment:4

resolution: → invalid
status: newclosed

Closed at request of author.