MCPcopy Create free account
hub / github.com/components/jquery / testContext

Function testContext

jquery.js:598–600  ·  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

596 * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
597 */
598function testContext( context ) {
599 return context && typeof context.getElementsByTagName !== "undefined" && context;
600}
601
602// Attribute selectors: https://www.w3.org/TR/selectors/#attribute-selectors
603var attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +

Callers 2

findFunction · 0.70
selectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected