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

Function getAll

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

Source from the content-addressed store, hash-verified

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

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