* 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 )
| 448 | * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value |
| 449 | */ |
| 450 | function testContext( context ) { |
| 451 | return context && typeof context.getElementsByTagName !== strundefined && context; |
| 452 | } |
| 453 | |
| 454 | // Expose support vars for convenience |
| 455 | support = Sizzle.support = {}; |