4 ], function( jQuery, nodeName ) {
8 function getAll( context, tag ) {
10 // Support: IE <=9 - 11 only
11 // Use typeof to avoid zero-argument method invocation on host objects (#15151)
14 if ( typeof context.getElementsByTagName !== "undefined" ) {
15 ret = context.getElementsByTagName( tag || "*" );
17 } else if ( typeof context.querySelectorAll !== "undefined" ) {
18 ret = context.querySelectorAll( tag || "*" );
24 if ( tag === undefined || tag && nodeName( context, tag ) ) {
25 return jQuery.merge( [ context ], ret );