#2184 closed bug (fixed)
clone won't work with THEAD, TFOOT, TBODY, TR and TD in MSIE
Reported by: | kowcik | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.3 |
Component: | core | Version: | 1.2.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Beacuse clone uses innerHTML if the detected browser is MS Internet Explorer, cloning won't work with these nodes. See attached test case.
Attachments (3)
Change History (7)
Changed 15 years ago by
Attachment: | clone.html added |
---|
comment:1 Changed 15 years ago by
I've just checked with previously reported bugs, it is a duplicate of this bug: http://dev.jquery.com/ticket/2169, but my test-case is more extensive. I've went thru these test with 1.2.1 and all tested elements worked , so this is a regression.
Changed 15 years ago by
Attachment: | fix-for-1.2.2-clone.diff added |
---|
Another possible solution. It doesn't use clean() and should be faster, but it's bigger.
comment:3 Changed 15 years ago by
Someone told me that <option> also is having problems. I'll check with John and Brandon to get their thoughts.
Note: See
TracTickets for help on using
tickets.
Script will attempt to clone table elements using jQuery methods and native DOM. Results will be alerted for comparison.