While working on a jQuery Interface project, I came across an issue with
some code using the Draggable library.

It turns out in IE6 the cloneNode(true) does not properly copy the current
state of all HTML elements. Checkbox, radio and select box elements all lose
their current settings.

I blogged some more info here:
http://blog.pengoworks.com/blogger/index.cfm?action=blog:599

And here's an example:
http://www.pengoworks.com/workshop/bugs/cloneNode_issue.htm

(The example code uses straight DOM manipulation to simplify the examples
and to show it's not jQuery specific.)

Anyway, I believe this issue is the root cause of some other issues that
have been reported about jQuery such as Ticket #769 (Checkbox's state is
erased after wrap() action (IE 6)):

http://dev.jquery.com/ticket/769

I provide a solution to fix the problem in my blog (and in the example
code.)

Perhaps this fix should be implemented in the clone() method and other
places where cloneNode(true) is used.

-Dan

Reply via email to