Skip to main content

Bug Tracker

Side navigation

#7006 closed bug (invalid)

Opened September 06, 2010 01:36PM UTC

Closed September 22, 2010 11:57PM UTC

.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 (0.5 KB) - added by Dashu September 06, 2010 01:36PM UTC.

    The HTML File for the demonstration

  • jquery-1.4.2.min.js (70.2 KB) - added by Dashu September 06, 2010 01:37PM UTC.

    the jQuery file for the demonstration

  • script.js (0.3 KB) - added by Dashu September 06, 2010 01:37PM UTC.

    the script file for the demonstration

Change History (1)

Changed September 22, 2010 11:57PM UTC by snover comment:1

priority: → undecided
resolution: → invalid
status: newclosed

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