We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 748d354 commit b998995Copy full SHA for b998995
src/librustdoc/html/static/main.js
@@ -213,9 +213,9 @@ if (!DOMTokenList.prototype.remove) {
213
function expandSection(id) {
214
var elem = document.getElementById(id);
215
if (elem && isHidden(elem)) {
216
- var h3 = elem.parentNode.previousSibling;
+ var h3 = elem.parentNode.previousElementSibling;
217
if (h3 && h3.tagName !== "H3") {
218
- h3 = h3.previousSibling; // skip div.docblock
+ h3 = h3.previousElementSibling; // skip div.docblock
219
}
220
221
if (h3) {
0 commit comments