* 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 )
| 1306 | * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value |
| 1307 | */ |
| 1308 | function testContext( context ) { |
| 1309 | return context && typeof context.getElementsByTagName !== "undefined" && context; |
| 1310 | } |
| 1311 | |
| 1312 | // Expose support vars for convenience |
| 1313 | support = Sizzle.support = {}; |