• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7700 for generic doc work for TWiki-6.0.2. Use View topic Item7703 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Interwiki plugin links in headings produce nested <a> tags in a TOC.

Test case:

Heading with WikiWord link


Heading with TWiki:Plugins.InterwikiPugin link



Resulting HTML code:

<a href="#Heading_with_TWiki_Plugins_Inter"> Heading with <a href="http://twiki.org/cgi-bin/view/Plugins.InterwikiPugin" title="'Plugins.InterwikiPugin' on TWiki.org">TWiki:Plugins.InterwikiPugin</a> link</a>

-- PTh

This happens because _TOC is processed during variable expansion, which occurs before the preRenderingHandler which InterwikiPlugin uses is called. InterwikiPlugin should use a different handler (commontagsHandler would make more sense).


No, we can't move the processing, the TOC handling is done deliberately late in the rendering stage to catch also dynamically generated content with headings. If we move the processing we will break compatibility. We need a way of escaping interwiki links, such as with leading <nop>

-- PTh

The test case here produces OK HTML output (no nested anchors). Looks like this has been fixed?

-- SP

No, not yet fixed. Look at the link in the TOC.

-- PTh

This is fixed now, svn 12395.

-- PTh

4.1.0 released


Summary Nested anchor tag in TOC with Interwiki link
ReportedBy TWiki:Main.PeterThoeny
Codebase 4.0.2, ~twiki4
SVN Range TWiki-4.1, Sat, 23 Sep 2006, build 11571
AppliesTo Engine

Priority Normal
CurrentState Closed

Checkins 12395
TargetRelease minor
Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2007-01-16 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback