* 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 )
| 993 | * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value |
| 994 | */ |
| 995 | function testContext( context ) { |
| 996 | return context && typeof context.getElementsByTagName !== "undefined" && context; |
| 997 | } |
| 998 | |
| 999 | // Expose support vars for convenience |
| 1000 | support = Sizzle.support = {}; |
no outgoing calls
no test coverage detected