MCPcopy Index your code
hub / github.com/jquery/jquery / getAll

Function getAll

dist-module/jquery.module.js:4334–4357  ·  view source on GitHub ↗
( context, tag )

Source from the content-addressed store, hash-verified

4332wrapMap.th = wrapMap.td;
4333
4334function getAll( context, tag ) {
4335
4336 // Support: IE <=9 - 11+
4337 // Use typeof to avoid zero-argument method invocation on host objects (trac-15151)
4338 var ret;
4339
4340 if ( typeof context.getElementsByTagName !== "undefined" ) {
4341
4342 // Use slice to snapshot the live collection from gEBTN
4343 ret = arr.slice.call( context.getElementsByTagName( tag || "*" ) );
4344
4345 } else if ( typeof context.querySelectorAll !== "undefined" ) {
4346 ret = context.querySelectorAll( tag || "*" );
4347
4348 } else {
4349 ret = [];
4350 }
4351
4352 if ( tag === undefined || tag && nodeName( context, tag ) ) {
4353 return jQuery.merge( [ context ], ret );
4354 }
4355
4356 return ret;
4357}
4358
4359var rscriptType = /^$|^module$|\/(?:java|ecma)script/i;
4360

Callers 4

buildFragmentFunction · 0.70
domManipFunction · 0.70
removeFunction · 0.70
jQueryFactoryFunction · 0.70

Calls 1

nodeNameFunction · 0.70

Tested by

no test coverage detected