MCPcopy Create free account
hub / github.com/TruthHun/BookStack / testContext

Function testContext

static/wangEditor/js/lib/jquery-2.2.1.js:1009–1011  ·  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

1007 * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
1008 */
1009function testContext( context ) {
1010 return context && typeof context.getElementsByTagName !== "undefined" && context;
1011}
1012
1013// Expose support vars for convenience
1014support = Sizzle.support = {};

Callers 2

SizzleFunction · 0.70
jquery-2.2.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected