#2653 closed bug (wontfix)
clone() and ID attribute
Reported by: | chrishandorf | Owned by: | flesler |
---|---|---|---|
Priority: | minor | Milestone: | 1.3 |
Component: | core | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The clone() function as well as the jQuery UI "helper:clone" function will also clone the ID attribute of the original. So 2 objects in the browser now have same ID. This caused me some problems with drag and drop when using helper:clone.
It seems to me that the clone() function should automatically clear the ID attribute (if any) on all elements that are cloned.
Change History (3)
comment:1 follow-up: 2 Changed 15 years ago by
Owner: | set to flesler |
---|---|
Status: | new → assigned |
comment:2 Changed 15 years ago by
Replying to flesler:
The problem shouldn't arise until you actually append the element, which doesn't always happen.
What do you guys think ?
Sorry for the trouble - I think I have worked around this problem and its probably a good thing the id isn't cleared by helper:clone. If it was then how would I know what the ID of the original object that started the drag was?
comment:3 Changed 15 years ago by
Milestone: | 1.2.4 → 1.3 |
---|---|
Resolution: | → wontfix |
Status: | assigned → closed |
Right ok.
The problem shouldn't arise until you actually append the element, which doesn't always happen.
What do you guys think ?