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