Bug Tracker

Modify

Ticket #2169 (closed bug: duplicate)

Opened 5 years ago

Last modified 5 years ago

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

Reported by: ieure Owned by:
Priority: major Milestone: 1.2.3
Component: core Version: 1.2.2
Keywords: Cc:
Blocking: Blocked by:

Description

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

Testcase attached. If you

Attachments

testcase.html Download (1.0 KB) - added by ieure 5 years 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 5 years 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.

comment:1 Changed 5 years 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.

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.