Hi everyone,
The HTML root element currently generated by the TOC macro has several drawbacks:
- It has no CSS class, which makes it difficult to style.
- Is an
ul
element while anav
element would be more appropriate for a table of contents.
Here’s a new structure proposal:
<nav class="xwiki-toc">
<ul>
<li>...</li>
<li>...</li>
</ul>
</nav>
What do you think about this proposal? Which other attributes should be added and why? Should we turn the ul
element to an ol
one since the list is ordered (like EPUB table of contents)? Any HTML API breakage that should be considered/avoided?