MCPcopy
hub / github.com/geekape/geek-navigation / getAll

Function getAll

js/jquery.js:4725–4746  ·  view source on GitHub ↗
( context, tag )

Source from the content-addressed store, hash-verified

4723
4724
4725function getAll( context, tag ) {
4726
4727 // Support: IE <=9 - 11 only
4728 // Use typeof to avoid zero-argument method invocation on host objects (#15151)
4729 var ret;
4730
4731 if ( typeof context.getElementsByTagName !== "undefined" ) {
4732 ret = context.getElementsByTagName( tag || "*" );
4733
4734 } else if ( typeof context.querySelectorAll !== "undefined" ) {
4735 ret = context.querySelectorAll( tag || "*" );
4736
4737 } else {
4738 ret = [];
4739 }
4740
4741 if ( tag === undefined || tag && nodeName( context, tag ) ) {
4742 return jQuery.merge( [ context ], ret );
4743 }
4744
4745 return ret;
4746}
4747
4748
4749// Mark scripts as having already been evaluated

Callers 4

buildFragmentFunction · 0.85
domManipFunction · 0.85
removeFunction · 0.85
jquery.jsFile · 0.85

Calls 1

nodeNameFunction · 0.85

Tested by

no test coverage detected