Skip to content

Commit b998995

Browse files
Fix js errors
1 parent 748d354 commit b998995

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustdoc/html/static/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,9 @@ if (!DOMTokenList.prototype.remove) {
213213
function expandSection(id) {
214214
var elem = document.getElementById(id);
215215
if (elem && isHidden(elem)) {
216-
var h3 = elem.parentNode.previousSibling;
216+
var h3 = elem.parentNode.previousElementSibling;
217217
if (h3 && h3.tagName !== "H3") {
218-
h3 = h3.previousSibling; // skip div.docblock
218+
h3 = h3.previousElementSibling; // skip div.docblock
219219
}
220220

221221
if (h3) {

0 commit comments

Comments
 (0)