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

Function testContext

2.1.1/test/jquery-1.11.1.js:1024–1026  ·  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

1022 * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
1023 */
1024function testContext( context ) {
1025 return context && typeof context.getElementsByTagName !== strundefined && context;
1026}
1027
1028// Expose support vars for convenience
1029support = Sizzle.support = {};

Callers 2

SizzleFunction · 0.70
jquery-1.11.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected