| 6450 | }); |
| 6451 | |
| 6452 | function getAll( context, tag ) { |
| 6453 | var elems, elem, |
| 6454 | i = 0, |
| 6455 | found = typeof context.getElementsByTagName !== core_strundefined ? context.getElementsByTagName( tag || "*" ) : |
| 6456 | typeof context.querySelectorAll !== core_strundefined ? context.querySelectorAll( tag || "*" ) : |
| 6457 | undefined; |
| 6458 | |
| 6459 | if ( !found ) { |
| 6460 | for ( found = [], elems = context.childNodes || context; (elem = elems[i]) != null; i++ ) { |
| 6461 | if ( !tag || jQuery.nodeName( elem, tag ) ) { |
| 6462 | found.push( elem ); |
| 6463 | } else { |
| 6464 | jQuery.merge( found, getAll( elem, tag ) ); |
| 6465 | } |
| 6466 | } |
| 6467 | } |
| 6468 | |
| 6469 | return tag === undefined || tag && jQuery.nodeName( context, tag ) ? |
| 6470 | jQuery.merge( [ context ], found ) : |
| 6471 | found; |
| 6472 | } |
| 6473 | |
| 6474 | // Used in buildFragment, fixes the defaultChecked property |
| 6475 | function fixDefaultChecked( elem ) { |