* 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 )
| 982 | * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value |
| 983 | */ |
| 984 | function testContext( context ) { |
| 985 | return context && typeof context.getElementsByTagName !== strundefined && context; |
| 986 | } |
| 987 | |
| 988 | // Expose support vars for convenience |
| 989 | support = Sizzle.support = {}; |