if ( !ret ) {
for ( ret = [], elems = context.childNodes || context; (elem = elems[ i ]) != null; i++ ) {
- core_push.apply( ret,
- !tag || jQuery.nodeName( elem, tag ) ?
+ core_push.apply( ret, !tag || jQuery.nodeName( elem, tag ) ?
getAll( elem, tag ) :
elems );
}
ret;
}
-// Used in clean, fixes the defaultChecked property
-function fixDefaultChecked( elem ) {
- if ( manipulation_rcheckableType.test( elem.type ) ) {
- elem.defaultChecked = elem.checked;
- }
-}
-
jQuery.extend({
clone: function( elem, dataAndEvents, deepDataAndEvents ) {
var destElements, srcElements, node, i,
container.removeChild( tmp );
}
- // Reset defaultChecked for any radios and checkboxes
- // about to be appended to the DOM in IE 6/7 (#8060)
- if ( !jQuery.support.appendChecked ) {
- jQuery.grep( getAll( ret, "input" ), fixDefaultChecked );
- }
-
if ( fragment ) {
for ( i = 0; (elem = ret[ i ]) != null; i++ ) {
container = jQuery.contains( elem.ownerDocument, elem );