Skip to main content

Bug Tracker

Side navigation

#2184 closed bug (fixed)

Opened January 17, 2008 12:50PM UTC

Closed January 23, 2008 04:09AM UTC

Last modified March 15, 2012 10:07AM UTC

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)
  • 2184.diff (1.8 KB) - added by davidserduke January 18, 2008 01:52AM UTC.

    possible patch

  • clone.html (1.1 KB) - added by kowcik January 17, 2008 12:51PM UTC.

    Script will attempt to clone table elements using jQuery methods and native DOM. Results will be alerted for comparison.

  • fix-for-1.2.2-clone.diff (1.4 KB) - added by davojan January 18, 2008 12:02PM UTC.

    Another possible solution. It doesn't use clean() and should be faster, but it's bigger.

Change History (4)

Changed January 17, 2008 01:17PM UTC by kowcik comment:1

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 January 18, 2008 03:32AM UTC by davidserduke comment:2

See also #2169 which has more information.

Changed January 18, 2008 06:13PM UTC by davidserduke comment:3

Someone told me that <option> also is having problems. I'll check with John and Brandon to get their thoughts.

Changed January 23, 2008 04:09AM UTC by davidserduke comment:4

resolution: → fixed
status: newclosed

Fixed in [4513].