MCPcopy Create free account
hub / github.com/JsAaron/jQuery / testContext

Function testContext

2.1.1/test/jquery-2.1.1.js:987–989  ·  view source on GitHub ↗

* Checks a node for validity as a Sizzle context * @param {Element|Object=} context * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value

( context )

Source from the content-addressed store, hash-verified

985 * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
986 */
987function testContext( context ) {
988 return context && typeof context.getElementsByTagName !== strundefined && context;
989}
990
991// Expose support vars for convenience
992support = Sizzle.support = {};

Callers 2

SizzleFunction · 0.70
jquery-2.1.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected