Skip to main content

Bug Tracker

Side navigation

#3704 closed bug (duplicate)

Opened December 09, 2008 11:39PM UTC

Closed November 20, 2010 09:34PM UTC

Last modified November 20, 2010 09:34PM UTC

clone(events) method loses defaultValue on IE

Reported by: mikesamuel Owned by: flesler
Priority: major Milestone: 1.2.5
Component: manipulation Version: 1.2.5
Keywords: Cc:
Blocked by: Blocking:
Description

http://docs.jquery.com/Manipulation/clone repairs problems with Node.cloneNode().

But some information not visible via innerHTML is lost.

The attached file should show

original. value=changed

original.defaultValue=initial

clone. value=changed

clone.defaultValue=initial

but on IE6 shows

original. value=changed

original.defaultValue=initial

clone. value=changed

clone.defaultValue=changed

This likely also a problem for defaultSelected and defaultChecked.

To test this in practice, create a form, change the contents of text input, click radio buttons, checkboxes, and select lists. Then close the form. If the bug is fixed, reset()ing the original and clone should return them to a similar state.

Attachments (1)
Change History (5)

Changed December 09, 2008 11:43PM UTC by mikesamuel comment:1

I seem to have mangled the expected and actual output.

Expected:

original.       value=changed
original.defaultValue=initial
   clone.       value=changed
   clone.defaultValue=initial

On IE 6:

original.       value=changed
original.defaultValue=initial
   clone.       value=changed
   clone.defaultValue=changed

Changed August 09, 2009 12:48AM UTC by dmethvin comment:2

component: unfilledcore

Changed June 20, 2010 07:24PM UTC by dmethvin comment:3

component: coremanipulation

Changed November 20, 2010 09:34PM UTC by snover comment:4

resolution: → duplicate
status: newclosed

Changed November 20, 2010 09:34PM UTC by snover comment:5

Duplicate of #3879.