* 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 )
| 1046 | * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value |
| 1047 | */ |
| 1048 | function testContext( context ) { |
| 1049 | return context && typeof context.getElementsByTagName !== "undefined" && context; |
| 1050 | } |
| 1051 | |
| 1052 | // Expose support vars for convenience |
| 1053 | support = Sizzle.support = {}; |