MCPcopy Create free account
hub / github.com/frank-lam/fullstack-tutorial / testContext

Function testContext

notes/docsify/unpkg/gotop/jquery-2.1.0.js:984–986  ·  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

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

Callers 2

SizzleFunction · 0.85
selectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected