From 8a832797c0b47a0da9bfe036742df2271c041394 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 11 Sep 2013 09:51:31 -0500 Subject: Fix support test for checkClone. Fixes Safari 5.1 manip failures. --- src/manipulation.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/manipulation.js') diff --git a/src/manipulation.js b/src/manipulation.js index d8b45528c..c51175570 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -488,8 +488,9 @@ jQuery.fn.extend({ isFunction = jQuery.isFunction( value ); // We can't cloneNode fragments that contain checked, in WebKit - if ( isFunction || !( l <= 1 || typeof value !== "string" || support.checkClone || - !rchecked.test( value ) ) ) { + if ( isFunction || + ( l > 1 && typeof value === "string" && + !support.checkClone && rchecked.test( value ) ) ) { return this.each(function( index ) { var self = set.eq( index ); if ( isFunction ) { -- cgit v1.2.3