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 704e68f commit fec06b9Copy full SHA for fec06b9
src/manipulation/getAll.js
@@ -7,10 +7,7 @@ export function getAll( context, tag ) {
7
// Use typeof to avoid zero-argument method invocation on host objects (trac-15151)
8
var ret;
9
10
- if ( typeof context.getElementsByTagName !== "undefined" ) {
11
- ret = context.getElementsByTagName( tag || "*" );
12
-
13
- } else if ( typeof context.querySelectorAll !== "undefined" ) {
+ if ( typeof context.querySelectorAll !== "undefined" ) {
14
ret = context.querySelectorAll( tag || "*" );
15
16
} else {
0 commit comments