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

Function testContext

dist-module/jquery.slim.module.js:584–586  ·  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

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

Callers 2

findFunction · 0.70
selectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected