MCPcopy Index your code
hub / github.com/jquery/jquery / testContext

Function testContext

dist-module/jquery.factory.module.js:589–591  ·  view source on GitHub ↗

* Checks a node for validity as a jQuery selector 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

587 * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
588 */
589function testContext( context ) {
590 return context && typeof context.getElementsByTagName !== "undefined" && context;
591}
592
593// Attribute selectors: https://www.w3.org/TR/selectors/#attribute-selectors
594var attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +

Callers 2

findFunction · 0.70
selectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected