Skip to content

Commit fec06b9

Browse files
authored
Add files via upload
1 parent 704e68f commit fec06b9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/manipulation/getAll.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ export function getAll( context, tag ) {
77
// Use typeof to avoid zero-argument method invocation on host objects (trac-15151)
88
var ret;
99

10-
if ( typeof context.getElementsByTagName !== "undefined" ) {
11-
ret = context.getElementsByTagName( tag || "*" );
12-
13-
} else if ( typeof context.querySelectorAll !== "undefined" ) {
10+
if ( typeof context.querySelectorAll !== "undefined" ) {
1411
ret = context.querySelectorAll( tag || "*" );
1512

1613
} else {

0 commit comments

Comments
 (0)