Skip to main content

Bug Tracker

Side navigation

#9072 closed bug (fixed)

Opened May 03, 2011 06:30PM UTC

Closed May 03, 2011 07:03PM UTC

Last modified March 17, 2012 08:43PM UTC

jQuery 1.6 Crashes IE 6

Reported by: john Owned by:
Priority: blocker Milestone: 1.6.1
Component: manipulation Version: 1.6
Keywords: Cc:
Blocked by: Blocking:
Description

Simple reproduce case:

  <html>
  <head>
  <script src="http://code.jquery.com/jquery-1.6.min.js"></script>
  </head>
  <body>
  <script>
  $('body').append(
    '<span></span>',
    '<span></span>',
    '<span></span>'
  )
  </script>
  </body>
  </html>

The bug is in this block: https://github.com/jquery/jquery/blob/1.6/src/manipulation.js#L652

Note the inner loop is clobbering the outer loop's "i" variable.

From here: http://news.ycombinator.com/item?id=2510844

Attachments (0)
Change History (6)

Changed May 03, 2011 06:31PM UTC by john comment:1

description: Simple reproduce case: \ \ {{{ \ <html> \ <head> \ <script src="http://code.jquery.com/jquery-1.6.min.js"></script> \ </head> \ <body> \ <script> \ $('body').append( \ '<span></span>', \ '<span></span>', \ '<span></span>' \ ) \ </script> \ </body> \ </html> \ }}} \ \ The bug is in this block: https://github.com/jquery/jquery/blob/1.6/src/manipulation.j... \ \ Note the inner loop is clobbering the outer loop's "i" variable. \ \ From here: http://news.ycombinator.com/item?id=2510844Simple reproduce case: \ \ {{{ \ <html> \ <head> \ <script src="http://code.jquery.com/jquery-1.6.min.js"></script> \ </head> \ <body> \ <script> \ $('body').append( \ '<span></span>', \ '<span></span>', \ '<span></span>' \ ) \ </script> \ </body> \ </html> \ }}} \ \ The bug is in this block: https://github.com/jquery/jquery/blob/1.6/src/manipulation.js#L652 \ \ Note the inner loop is clobbering the outer loop's "i" variable. \ \ From here: http://news.ycombinator.com/item?id=2510844

Changed May 03, 2011 06:34PM UTC by john comment:2

component: unfiledmanipulation
milestone: 1.next1.6.1
priority: undecidedblocker

Changed May 03, 2011 07:03PM UTC by John Resig comment:3

resolution: → fixed
status: newclosed

Fix problem with appending multiple string arguments in IE 6. Fixes #9072.

Changeset: bfad45fe4510db78a38170752ccc9c9efe5f38b6

Changed May 04, 2011 10:42PM UTC by timmywil comment:4

#9107 is a duplicate of this ticket.

Changed May 05, 2011 01:27AM UTC by timmywil comment:5

#9110 is a duplicate of this ticket.

Changed May 14, 2011 09:26AM UTC by anonymous comment:6

A heads up: I see this was fixed in jQuery 1.6.1 but http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js, which I thought was the latest jQuery, has the bug in it. I wasted hours debugging today because of this.