mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Fix support test for checkClone. Fixes Safari 5.1 manip failures.
Conflicts: src/manipulation.js
This commit is contained in:
parent
c13c5d7d24
commit
7a6c635cfa
@ -655,7 +655,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 ) {
|
||||
|
@ -33,6 +33,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" );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user