MCPcopy Create free account
hub / github.com/components/jquery / getAll

Function getAll

jquery.js:4348–4371  ·  view source on GitHub ↗
( context, tag )

Source from the content-addressed store, hash-verified

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

Callers 4

buildFragmentFunction · 0.70
domManipFunction · 0.70
removeFunction · 0.70
jquery.jsFile · 0.70

Calls 1

nodeNameFunction · 0.70

Tested by

no test coverage detected