( context, tag )
| 4723 | |
| 4724 | |
| 4725 | function getAll( context, tag ) { |
| 4726 | |
| 4727 | // Support: IE <=9 - 11 only |
| 4728 | // Use typeof to avoid zero-argument method invocation on host objects (#15151) |
| 4729 | var ret; |
| 4730 | |
| 4731 | if ( typeof context.getElementsByTagName !== "undefined" ) { |
| 4732 | ret = context.getElementsByTagName( tag || "*" ); |
| 4733 | |
| 4734 | } else if ( typeof context.querySelectorAll !== "undefined" ) { |
| 4735 | ret = context.querySelectorAll( tag || "*" ); |
| 4736 | |
| 4737 | } else { |
| 4738 | ret = []; |
| 4739 | } |
| 4740 | |
| 4741 | if ( tag === undefined || tag && nodeName( context, tag ) ) { |
| 4742 | return jQuery.merge( [ context ], ret ); |
| 4743 | } |
| 4744 | |
| 4745 | return ret; |
| 4746 | } |
| 4747 | |
| 4748 | |
| 4749 | // Mark scripts as having already been evaluated |
no test coverage detected