diff options
Diffstat (limited to 'src/manipulation.js')
-rw-r--r-- | src/manipulation.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index 439b9596b..2f41feb9a 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -564,7 +564,10 @@ jQuery.extend({ // with an element if you are cloning the body and one of the // elements on the page has a name or id of "length" for ( i = 0; srcElements[i]; ++i ) { - cloneFixAttributes( srcElements[i], destElements[i] ); + // Ensure that the destination node is not null; Fixes #9587 + if ( destElements[i] ) { + cloneFixAttributes( srcElements[i], destElements[i] ); + } } } @@ -762,4 +765,4 @@ function evalScript( i, elem ) { } } -})( jQuery );
\ No newline at end of file +})( jQuery ); |