jQuery: The Write Less, Do More JavaScript Library

Ticket #2169 (closed bug: duplicate)

Opened 7 months ago

Last modified 7 months ago

1.2.2 Regression with .clone() of "tr" elements in IE 6

Reported by: ieure Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.3 Component: core
Version: 1.2.2 Keywords:
Cc: Needs: Review

Description

1.2.2 broke .clone() of <tr> elements in IE 6. 1.2.1 works fine.

Testcase attached. If you

Attachments

testcase.html (1.0 kB) - added by ieure 7 months ago.
Testcase. 1.2.1 & 1.2.1 work in Firefox; 1.2.1 works in IE; 1.2.2 breaks in IE.

Change History

Changed 7 months ago by ieure

Testcase. 1.2.1 & 1.2.1 work in Firefox; 1.2.1 works in IE; 1.2.2 breaks in IE.

Changed 7 months ago by ieure

Description is cut off. Should say:

If you swap the version of jQuery in the header, you’ll be able to confirm that it works in IE with 1.2.1, but breaks with 1.2.2.

The issue is the clone() call. If you examine the cloned items, you can see that they are empty - they have properties, but nothing is set; even tagName is undefined. This causes the insertBefore() call to fail.

Testcase shows that the problem only affects <tr> elements- the <div>s continue to work.

Changed 7 months ago by davidserduke

  • status changed from new to closed
  • resolution set to duplicate

I'm going to close this as a duplicate of #2184 since I posted the possible patch there and it covers tr as well as some other table elements. I'll link back to this one for the additional information though.

Note: See TracTickets for help on using tickets.