Changeset 5578
- Timestamp:
- 05/13/08 02:20:08 (3 months ago)
- Files:
-
- 1 modified
-
trunk/jquery/src/core.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/core.js
r5577 r5578 1147 1147 // We have to loop this way because IE & Opera overwrite the length 1148 1148 // expando of getElementsByTagName 1149 var i = 0 ;1149 var i = 0, elem, pos = first.length; 1150 1150 // Also, we need to make sure that the correct elements are being returned 1151 1151 // (IE returns comment nodes in a '*' query) 1152 1152 if ( jQuery.browser.msie ) { 1153 for ( ; second[ i ]; i++)1154 if ( second[ i ].nodeType != 8 )1155 first .push( second[ i ] );1153 while ( elem = second[ i++ ] ) 1154 if ( elem.nodeType != 8 ) 1155 first[ pos++ ] = elem; 1156 1156 1157 1157 } else 1158 for ( ; second[ i ]; i++)1159 first .push( second[ i ] );1158 while ( elem = second[ i++ ] ) 1159 first[ pos++ ] = elem; 1160 1160 1161 1161 return first;