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