Skip to content
Permalink
Browse files

Fix #12132. IE10 dislikes detached object elements. Close gh-870.

  • Loading branch information...
elijahmanor authored and dmethvin committed Jul 24, 2012
1 parent 91dfb28 commit 077987876bbd01b8b48a72b3573694fafaa44d39
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/manipulation.js
@@ -436,11 +436,12 @@ function cloneFixAttributes( src, dest ) {

nodeName = dest.nodeName.toLowerCase();

// IE6-8 fail to clone children inside object elements that use
// the proprietary classid attribute value (rather than the type
// attribute) to identify the type of content to display
if ( nodeName === "object" ) {
dest.outerHTML = src.outerHTML;
// IE6-10 improperly clones children of object elements using classid.
// IE10 throws NoModificationAllowedError if parent is null, #12132.
if ( dest.parentNode ) {
dest.outerHTML = src.outerHTML;
}

// This path appears unavoidable for IE9. When cloning an object
// element in IE9, the outerHTML strategy above is not sufficient.

0 comments on commit 0779878

Please sign in to comment.
You can’t perform that action at this time.