create new tag
, view all tags

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...)


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

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2002-11-10 - PeterThoeny
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.