File tree 1 file changed +2
-2
lines changed
src/librustdoc/html/static
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1197,7 +1197,7 @@ if (!DOMTokenList.prototype.remove) {
1197
1197
var actives = [ [ ] , [ ] , [ ] ] ;
1198
1198
// "current" is used to know which tab we're looking into.
1199
1199
var current = 0 ;
1200
- onEachLazy ( document . getElementsByClassName ( "search- results") , function ( e ) {
1200
+ onEachLazy ( document . getElementById ( " results") . childNodes , function ( e ) {
1201
1201
onEachLazy ( e . getElementsByClassName ( "highlighted" ) , function ( e ) {
1202
1202
actives [ current ] . push ( e ) ;
1203
1203
} ) ;
@@ -1214,7 +1214,7 @@ if (!DOMTokenList.prototype.remove) {
1214
1214
removeClass ( actives [ currentTab ] [ 0 ] , "highlighted" ) ;
1215
1215
} else if ( e . which === 40 ) { // down
1216
1216
if ( ! actives [ currentTab ] . length ) {
1217
- var results = document . getElementsByClassName ( "search- results") ;
1217
+ var results = document . getElementById ( " results") . childNodes ;
1218
1218
if ( results . length > 0 ) {
1219
1219
var res = results [ currentTab ] . getElementsByClassName ( "result" ) ;
1220
1220
if ( res . length > 0 ) {
You can’t perform that action at this time.
0 commit comments