( context, tag )
| 4332 | wrapMap.th = wrapMap.td; |
| 4333 | |
| 4334 | function getAll( context, tag ) { |
| 4335 | |
| 4336 | // Support: IE <=9 - 11+ |
| 4337 | // Use typeof to avoid zero-argument method invocation on host objects (trac-15151) |
| 4338 | var ret; |
| 4339 | |
| 4340 | if ( typeof context.getElementsByTagName !== "undefined" ) { |
| 4341 | |
| 4342 | // Use slice to snapshot the live collection from gEBTN |
| 4343 | ret = arr.slice.call( context.getElementsByTagName( tag || "*" ) ); |
| 4344 | |
| 4345 | } else if ( typeof context.querySelectorAll !== "undefined" ) { |
| 4346 | ret = context.querySelectorAll( tag || "*" ); |
| 4347 | |
| 4348 | } else { |
| 4349 | ret = []; |
| 4350 | } |
| 4351 | |
| 4352 | if ( tag === undefined || tag && nodeName( context, tag ) ) { |
| 4353 | return jQuery.merge( [ context ], ret ); |
| 4354 | } |
| 4355 | |
| 4356 | return ret; |
| 4357 | } |
| 4358 | |
| 4359 | var rscriptType = /^$|^module$|\/(?:java|ecma)script/i; |
| 4360 |
no test coverage detected