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

Function getAll

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

Source from the content-addressed store, hash-verified

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

Callers 4

buildFragmentFunction · 0.70
domManipFunction · 0.70
removeFunction · 0.70
jQueryFactoryWrapperFunction · 0.70

Calls 1

nodeNameFunction · 0.70

Tested by

no test coverage detected