File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 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) {
11971197 var actives = [ [ ] , [ ] , [ ] ] ;
11981198 // "current" is used to know which tab we're looking into.
11991199 var current = 0 ;
1200- onEachLazy ( document . getElementsByClassName ( "search- results") , function ( e ) {
1200+ onEachLazy ( document . getElementById ( " results") . childNodes , function ( e ) {
12011201 onEachLazy ( e . getElementsByClassName ( "highlighted" ) , function ( e ) {
12021202 actives [ current ] . push ( e ) ;
12031203 } ) ;
@@ -1214,7 +1214,7 @@ if (!DOMTokenList.prototype.remove) {
12141214 removeClass ( actives [ currentTab ] [ 0 ] , "highlighted" ) ;
12151215 } else if ( e . which === 40 ) { // down
12161216 if ( ! actives [ currentTab ] . length ) {
1217- var results = document . getElementsByClassName ( "search- results") ;
1217+ var results = document . getElementById ( " results") . childNodes ;
12181218 if ( results . length > 0 ) {
12191219 var res = results [ currentTab ] . getElementsByClassName ( "result" ) ;
12201220 if ( res . length > 0 ) {
You can’t perform that action at this time.
0 commit comments