( context, tag )
| 4269 | |
| 4270 | |
| 4271 | function getAll( context, tag ) { |
| 4272 | |
| 4273 | // Support: IE9-11+ |
| 4274 | // Use typeof to avoid zero-argument method invocation on host objects (#15151) |
| 4275 | var ret = typeof context.getElementsByTagName !== "undefined" ? |
| 4276 | context.getElementsByTagName( tag || "*" ) : |
| 4277 | typeof context.querySelectorAll !== "undefined" ? |
| 4278 | context.querySelectorAll( tag || "*" ) : |
| 4279 | []; |
| 4280 | |
| 4281 | return tag === undefined || tag && jQuery.nodeName( context, tag ) ? |
| 4282 | jQuery.merge( [ context ], ret ) : |
| 4283 | ret; |
| 4284 | } |
| 4285 | |
| 4286 | |
| 4287 | // Mark scripts as having already been evaluated |
no outgoing calls
no test coverage detected