// See if we can take a shortcut and just use innerHTML
if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
- !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
+ !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[ 1 ].toLowerCase() ] ) {
value = value.replace( rxhtmlTag, "<$1></$2>" );
try {
for (; i < l; i++ ) {
// Remove element nodes and prevent memory leaks
- elem = this[i] || {};
+ elem = this[ i ] || {};
if ( elem.nodeType === 1 ) {
jQuery.cleanData( getAll( elem, false ) );
elem.innerHTML = value;
}
callback.call(
- table && jQuery.nodeName( this[i], "table" ) ?
- findOrAppend( this[i], "tbody" ) :
- this[i],
+ table && jQuery.nodeName( this[ i ], "table" ) ?
+ findOrAppend( this[ i ], "tbody" ) :
+ this[ i ],
node,
i
);
function restoreScript( elem ) {
var match = rscriptTypeMasked.exec( elem.type );
if ( match ) {
- elem.type = match[1];
+ elem.type = match[ 1 ];
} else {
elem.removeAttribute("type");
}
function setGlobalEval( elems, refElements ) {
var elem,
i = 0;
- for ( ; (elem = elems[i]) != null; i++ ) {
- jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[i], "globalEval" ) );
+ for ( ; (elem = elems[ i ]) != null; i++ ) {
+ jQuery._data( elem, "globalEval", !refElements || jQuery._data( refElements[ i ], "globalEval" ) );
}
}
for ( ; i <= last; i++ ) {
elems = i === last ? this : this.clone(true);
- jQuery( insert[i] )[ original ]( elems );
+ jQuery( insert[ i ] )[ original ]( elems );
// Modern browsers can apply jQuery collections as arrays, but oldIE needs a .get()
core_push.apply( ret, elems.get() );
undefined;
if ( !found ) {
- for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) {
+ for ( found = [], elems = context.childNodes || context; (elem = elems[ i ]) != null; i++ ) {
if ( !tag || jQuery.nodeName( elem, tag ) ) {
found.push( elem );
} else {
srcElements = getAll( elem );
// Fix all IE cloning issues
- for ( i = 0; (node = srcElements[i]) != null; ++i ) {
+ for ( i = 0; (node = srcElements[ i ]) != null; ++i ) {
// Ensure that the destination node is not null; Fixes #9587
- if ( destElements[i] ) {
- fixCloneNodeIssues( node, destElements[i] );
+ if ( destElements[ i ] ) {
+ fixCloneNodeIssues( node, destElements[ i ] );
}
}
}
srcElements = srcElements || getAll( elem );
destElements = destElements || getAll( clone );
- for ( i = 0; (node = srcElements[i]) != null; i++ ) {
- cloneCopyEvent( node, destElements[i] );
+ for ( i = 0; (node = srcElements[ i ]) != null; i++ ) {
+ cloneCopyEvent( node, destElements[ i ] );
}
} else {
cloneCopyEvent( elem, clone );
context = document;
}
- for ( i = 0; (elem = elems[i]) != null; i++ ) {
+ for ( i = 0; (elem = elems[ i ]) != null; i++ ) {
if ( elem || elem === 0 ) {
// Add nodes directly
if ( jQuery.type( elem ) === "object" ) {
tmp = tmp || container.appendChild( context.createElement("div") );
// Deserialize a standard representation
- tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase();
+ tag = ( rtagName.exec( elem ) || ["", ""] )[ 1 ].toLowerCase();
wrap = wrapMap[ tag ] || wrapMap._default;
- tmp.innerHTML = wrap[1] + elem.replace( rxhtmlTag, "<$1></$2>" ) + ( wrap[2] || "" );
+ tmp.innerHTML = wrap[ 1 ] + elem.replace( rxhtmlTag, "<$1></$2>" ) + ( wrap[ 2 ] || "" );
// Descend through wrappers to the right content
j = wrap[0];
}
if ( fragment ) {
- for ( i = 0; (elem = ret[i]) != null; i++ ) {
+ for ( i = 0; (elem = ret[ i ]) != null; i++ ) {
container = jQuery.contains( elem.ownerDocument, elem );
// Append to fragment
// Capture executables
if ( scripts ) {
- for ( j = 0; (elem = tmp[j]) != null; j++ ) {
+ for ( j = 0; (elem = tmp[ j ]) != null; j++ ) {
if ( rscriptType.test( elem.type || "" ) ) {
scripts.push( elem );
}
deleteExpando = jQuery.support.deleteExpando,
special = jQuery.event.special;
- for ( ; (elem = elems[i]) != null; i++ ) {
+ for ( ; (elem = elems[ i ]) != null; i++ ) {
if ( acceptData || jQuery.acceptData( elem ) ) {