Skip to content
Permalink
Browse files

Fix support test for checkClone. Fixes Safari 5.1 manip failures.

  • Loading branch information...
timmywil committed Sep 11, 2013
1 parent 19de30c commit 8a832797c0b47a0da9bfe036742df2271c041394
Showing with 4 additions and 2 deletions.
  1. +3 −2 src/manipulation.js
  2. +1 −0 src/manipulation/support.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 ) {
@@ -14,6 +14,7 @@ define([
support.noCloneChecked = input.cloneNode( true ).checked;

// #11217 - WebKit loses check when the name is after the checked attribute
input.checked = false;
input.setAttribute( "checked", "t" );
input.setAttribute( "name", "t" );

0 comments on commit 8a83279

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