( context, tag )
| 6350 | }); |
| 6351 | |
| 6352 | function getAll( context, tag ) { |
| 6353 | var elems, elem, |
| 6354 | i = 0, |
| 6355 | found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) : |
| 6356 | typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) : |
| 6357 | undefined; |
| 6358 | |
| 6359 | if ( !found ) { |
| 6360 | for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { |
| 6361 | if ( !tag || jQuery.nodeName( elem, tag ) ) { |
| 6362 | found.push( elem ); |
| 6363 | } else { |
| 6364 | jQuery.merge( found, getAll( elem, tag ) ); |
| 6365 | } |
| 6366 | } |
| 6367 | } |
| 6368 | |
| 6369 | return tag === undefined || tag && jQuery.nodeName( context, tag ) ? |
| 6370 | jQuery.merge( [ context ], found ) : |
| 6371 | found; |
| 6372 | } |
| 6373 | |
| 6374 | // Used in buildFragment, fixes the defaultChecked property |
| 6375 | function fixDefaultChecked( elem ) { |
no outgoing calls
no test coverage detected
searching dependent graphs…