( context, tag )
| 4697 | |
| 4698 | |
| 4699 | function getAll( context, tag ) { |
| 4700 | |
| 4701 | // Support: IE <=9 - 11 only |
| 4702 | // Use typeof to avoid zero-argument method invocation on host objects (trac-15151) |
| 4703 | var ret; |
| 4704 | |
| 4705 | if ( typeof context.getElementsByTagName !== "undefined" ) { |
| 4706 | ret = context.getElementsByTagName( tag || "*" ); |
| 4707 | |
| 4708 | } else if ( typeof context.querySelectorAll !== "undefined" ) { |
| 4709 | ret = context.querySelectorAll( tag || "*" ); |
| 4710 | |
| 4711 | } else { |
| 4712 | ret = []; |
| 4713 | } |
| 4714 | |
| 4715 | if ( tag === undefined || tag && nodeName( context, tag ) ) { |
| 4716 | return jQuery.merge( [ context ], ret ); |
| 4717 | } |
| 4718 | |
| 4719 | return ret; |
| 4720 | } |
| 4721 | |
| 4722 | |
| 4723 | // Mark scripts as having already been evaluated |
no test coverage detected