Skip to content

Commit 464d9f5

Browse files
authored
Add files via upload
1 parent 5fdb938 commit 464d9f5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/manipulation/getAll.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
import { jQuery } from "../core.js";
22
import { nodeName } from "../core/nodeName.js";
3+
import { arr } from "../var/arr.js";
34

45
export function getAll( context, tag ) {
56

67
// Support: IE <=9 - 11+
78
// Use typeof to avoid zero-argument method invocation on host objects (trac-15151)
89
var ret;
910

10-
if ( typeof context.querySelectorAll !== "undefined" ) {
11+
if ( typeof context.getElementsByTagName !== "undefined" ) {
12+
ret = arr.slice.call( context.getElementsByTagName( tag || "*" ) );
13+
14+
} else if ( typeof context.querySelectorAll !== "undefined" ) {
1115
ret = context.querySelectorAll( tag || "*" );
1216

1317
} else {

0 commit comments

Comments
 (0)