( context, tag )
| 4963 | |
| 4964 | |
| 4965 | function getAll( context, tag ) { |
| 4966 | |
| 4967 | // Support: IE <=9 - 11 only |
| 4968 | // Use typeof to avoid zero-argument method invocation on host objects (#15151) |
| 4969 | var ret; |
| 4970 | |
| 4971 | if ( typeof context.getElementsByTagName !== "undefined" ) { |
| 4972 | ret = context.getElementsByTagName( tag || "*" ); |
| 4973 | |
| 4974 | } else if ( typeof context.querySelectorAll !== "undefined" ) { |
| 4975 | ret = context.querySelectorAll( tag || "*" ); |
| 4976 | |
| 4977 | } else { |
| 4978 | ret = []; |
| 4979 | } |
| 4980 | |
| 4981 | if ( tag === undefined || tag && nodeName( context, tag ) ) { |
| 4982 | return jQuery.merge( [ context ], ret ); |
| 4983 | } |
| 4984 | |
| 4985 | return ret; |
| 4986 | } |
| 4987 | |
| 4988 | |
| 4989 | // Mark scripts as having already been evaluated |
no test coverage detected