Skip to content

Commit

Permalink
Remove fix for object element
Browse files Browse the repository at this point in the history
  • Loading branch information
markelog committed Dec 24, 2012
1 parent 5e64281 commit 33be48a
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/manipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,22 +642,9 @@ function fixCloneNodeIssues( src, dest ) {

nodeName = dest.nodeName.toLowerCase();

if ( nodeName === "object" ) {
if ( dest.parentNode ) {
dest.outerHTML = src.outerHTML;
}

// Support: IE 9
// When cloning an object the outerHTML strategy above is not sufficient.
// If the src has innerHTML and the destination does not,
// copy the src.innerHTML into the dest.innerHTML. #10324
if ( src.innerHTML && !jQuery.trim( dest.innerHTML ) ) {
dest.innerHTML = src.innerHTML;
}

// Support: IE >= 9
// Fails to persist the checked state of a cloned checkbox or radio button.
} else if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) {
if ( nodeName === "input" && manipulation_rcheckableType.test( src.type ) ) {
dest.checked = src.checked;

// Support: IE >= 9
Expand Down

0 comments on commit 33be48a

Please sign in to comment.