Bug Tracker

Opened 5 years ago

Closed 5 years ago

#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:
Blocked by: Blocking:

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 (3)

bug.html (530 bytes) - added by Dashu 5 years ago.
The HTML File for the demonstration
script.js (312 bytes) - added by Dashu 5 years ago.
the script file for the demonstration
jquery-1.4.2.min.js (70.2 KB) - added by Dashu 5 years ago.
the jQuery file for the demonstration

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by Dashu

The HTML File for the demonstration

Changed 5 years ago by Dashu

the script file for the demonstration

Changed 5 years ago by Dashu

the jQuery file for the demonstration

comment:1 Changed 5 years ago by snover

  • Priority set to undecided
  • Resolution set to invalid
  • Status changed from new to closed

The provided test code is invalid. Using valid code, .clone and .html work fine. Please use the jQuery Forum for support requests.

Note: See TracTickets for help on using tickets.