Modify ↓
Ticket #7006 (closed bug: invalid)
.html() on a cloned element returns value of the parent element
| Reported by: | Dashu | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | 1.4.3 |
| Component: | attributes | Version: | 1.4.2 |
| Keywords: | cloned bug, innerHtml | Cc: | |
| Blocking: | Blocked by: |
Description
If I clone a tablerow, change its content and then call clone.html(), it returns the inner HTML value of the parent element (the one it was cloned of)
I attached a testcase to reproduce the bug
Attachments
Change History
Changed 3 years ago by Dashu
-
attachment
jquery-1.4.2.min.js
added
the jQuery file for the demonstration
comment:1 Changed 3 years ago by snover
- Priority set to undecided
- Status changed from new to closed
- Resolution set to invalid
The provided test code is invalid. Using valid code, .clone and .html work fine. Please use the jQuery Forum for support requests.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

The HTML File for the demonstration