Forum How do I...?

Not linking TOC content in mediawiki

hamishwillee
Hi
I have HTML like this:

<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="#Introduction"><span class="tocnumber">1</span> <span class="toctext">Introduction</span></a></li>
<li class="toclevel-1"><a href="#Key_Benefits"><span class="tocnumber">2</span> <span class="toctext">Key Benefits</span></a>

With a heading Introduction below:
<a name="Introduction" id="Introduction"></a><h2> <span class="mw-headline">  Introduction </span></h2>
<p>The 


In HTML clicking the table-of-contents links takes you to the section. In PDF clicking the link does nothing. Other links work. What could cause this?

Thanks
H
mikeday
Sometimes there are issues with links to empty anchor elements, and it's usually easier to link to heading or <div> elements directly. Could you email me a sample HTML document where the links don't work?
hamishwillee
From Mike:

This is a problem with linking to empty anchor elements that occur in a block context. We hope to fix this for an upcoming maintenance release.

Moving the anchor inside the <h3> instead of before it would solve the problem.