Bug: Full Hiearchy Paths in Table-of-Contents Anchors
Autogenerated TOC's cannot distinguish between identically-named section nodes in different parts of the document. It ends up creating multiple target anchors with the same name. Resulting behavior is incorrect, and browser dependent to boot.
Test case
Here's a sample generated TOC.
Try clicking on the two "useful scripts" links and see where you end up.
A test hiearchy.
Task 1
Here's how you go about task 1.
(Filler text)
Useful Scripts
(Scripts concerning task 1...)
Task 2
Here's how you go about task 2.
(Filler text)
Useful Scripts
(Scripts concerning task 2...)
Environment
| TWiki version: |
Version 01 Dec 2001, also Revision r1.55 - 28 Oct 2002 |
| TWiki plugins: |
|
| Server OS: |
|
| Web server: |
|
| Perl version: |
|
| Client OS: |
|
| Web Browser: |
|
--
BrettLevin - 29 Oct 2002
Follow up
Suggested fix: anchor names should have the full hierarchical path to the section, or, better for legibility, as long a path as necessary to distinguish from other TOC links.
#Task_1_Useful_Scripts rather than
Useful_Scripts, etc...
This is a known bug, check
TocFailsForIdenticalHeadingNames [
EB 30 oct 2002 ]
Fix record