* Checks a node for validity as a jQuery selector context * @param {Element|Object=} context * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
( context )
| 582 | * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value |
| 583 | */ |
| 584 | function testContext( context ) { |
| 585 | return context && typeof context.getElementsByTagName !== "undefined" && context; |
| 586 | } |
| 587 | |
| 588 | // Attribute selectors: https://www.w3.org/TR/selectors/#attribute-selectors |
| 589 | var attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace + |