* 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 )
| 1012 | * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value |
| 1013 | */ |
| 1014 | function testContext( context ) { |
| 1015 | return context && typeof context.getElementsByTagName !== "undefined" && context; |
| 1016 | } |
| 1017 | |
| 1018 | // Expose support vars for convenience |
| 1019 | support = Sizzle.support = {}; |
no outgoing calls
no test coverage detected