Skip to main content

Bug Tracker

Side navigation

#163 closed bug (duplicate)

Opened September 01, 2006 09:00AM UTC

Closed October 06, 2006 02:53PM UTC

Last modified June 21, 2007 03:01AM UTC

IE throws errors for $(this) in nested each loops

Reported by: klaus.hartl@stilbuer Owned by:
Priority: minor Milestone: 1.0
Component: core Version: 1.0
Keywords: each loop ie xml Cc:
Blocked by: Blocking:

Consider the following XML:

                <tab title="Location">
                    <![CDATA[ ... ]]>
                <tab title="Users">
                    <![CDATA[ ... ]]>

And that JavaScript (both simplified):


$.get(..., function(xml) {

$('location', xml).each(function() {

var content = [];

var infoWindowTabs = $('infowindowtab', this);

$('tab', infoWindowTabs[0]).each(function(k) {

// workaround for IE needed here, $(this).text() throws an error

content[k] = || $(this).text());




In that case IE fails on $(this).text() and throws an error (object does not support that property or method).

Attachments (0)
Change History (1)

Changed October 06, 2006 02:53PM UTC by joern comment:1

resolution: → duplicate
status: newclosed