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

Function getAll

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

Source from the content-addressed store, hash-verified

4769wrapMap.th = wrapMap.td;
4770
4771function getAll( context, tag ) {
4772
4773 // Support: IE <=9 - 11+
4774 // Use typeof to avoid zero-argument method invocation on host objects (trac-15151)
4775 var ret;
4776
4777 if ( typeof context.getElementsByTagName !== "undefined" ) {
4778
4779 // Use slice to snapshot the live collection from gEBTN
4780 ret = arr.slice.call( context.getElementsByTagName( tag || "*" ) );
4781
4782 } else if ( typeof context.querySelectorAll !== "undefined" ) {
4783 ret = context.querySelectorAll( tag || "*" );
4784
4785 } else {
4786 ret = [];
4787 }
4788
4789 if ( tag === undefined || tag && nodeName( context, tag ) ) {
4790 return jQuery.merge( [ context ], ret );
4791 }
4792
4793 return ret;
4794}
4795
4796var rscriptType = /^$|^module$|\/(?:java|ecma)script/i;
4797

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