We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fdb938 commit 464d9f5Copy full SHA for 464d9f5
src/manipulation/getAll.js
@@ -1,13 +1,17 @@
1
import { jQuery } from "../core.js";
2
import { nodeName } from "../core/nodeName.js";
3
+import { arr } from "../var/arr.js";
4
5
export function getAll( context, tag ) {
6
7
// Support: IE <=9 - 11+
8
// Use typeof to avoid zero-argument method invocation on host objects (trac-15151)
9
var ret;
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" ) {
15
ret = context.querySelectorAll( tag || "*" );
16
17
} else {
0 commit comments