Interwiki plugin links in headings produce nested
<a>
tags in a TOC.
Test case:
Heading with WikiWord link
foo
bar
TOC:
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).
CC
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
KJL