1
Fork 0

Fix js errors

This commit is contained in:
Guillaume Gomez 2018-12-16 13:45:46 +01:00
parent 748d354af3
commit b998995813

View file

@ -213,9 +213,9 @@ if (!DOMTokenList.prototype.remove) {
function expandSection(id) {
var elem = document.getElementById(id);
if (elem && isHidden(elem)) {
var h3 = elem.parentNode.previousSibling;
var h3 = elem.parentNode.previousElementSibling;
if (h3 && h3.tagName !== "H3") {
h3 = h3.previousSibling; // skip div.docblock
h3 = h3.previousElementSibling; // skip div.docblock
}
if (h3) {