3 ], function( jQuery ) {
5 function getAll( context, tag ) {
8 // Use typeof to avoid zero-argument method invocation on host objects (#15151)
9 var ret = typeof context.getElementsByTagName !== "undefined" ?
10 context.getElementsByTagName( tag || "*" ) :
11 typeof context.querySelectorAll !== "undefined" ?
12 context.querySelectorAll( tag || "*" ) :
15 return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
16 jQuery.merge( [ context ], ret ) :