Skip to content

Commit

Permalink
Revert "Always use a nav". SHould be a PR
Browse files Browse the repository at this point in the history
This reverts commit 0a43871.
  • Loading branch information
plehegar committed Mar 2, 2016
1 parent 0a43871 commit cf4515c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/core/structure.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ define(
if (!conf.noTOC) {
var $ul = makeTOCAtLevel($("body", doc), doc, [0], 1, conf);
if (!$ul) return;
var $sec = $("<nav id='toc'/>")
var w = conf.useExperimentalStyles ? "nav" : "section";
var $sec = $("<" + w + " id='toc'/>")
.append("<h2 class='introductory'>" + conf.l10n.toc + "</h2>")
.append($ul)
, $ref = $("#toc", doc), replace = false;
Expand Down

0 comments on commit cf4515c

Please sign in to comment.