Boost C++ Libraries: Ticket #4128: Inspect script finds many Docutils-generated duplicate bookmarks https://svn.boost.org/trac10/ticket/4128 <p> It seems that several libraries with autogenerated documentation contain things like: </p> <p> &lt;h3 id="foo"&gt;&lt;a name="foo" id="foo"&gt;...&lt;/a&gt;&lt;/h3&gt; </p> <p> These are found to be duplicate bookmarks by the inspect script. Should these be skipped by the tool, or are they legitimate issues with the HTML? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4128 Trac 1.4.3 Daniel James Tue, 20 Apr 2010 19:22:47 GMT <link>https://svn.boost.org/trac10/ticket/4128#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4128#comment:1</guid> <description> <p> That's a legitimate issue. Id's in a html document should be unique. I'm surprised that docutils would generate such markup, there's probably some configuration to stop it, or the generated documentation could be run through tidy. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Wed, 21 Apr 2010 09:01:11 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4128#comment:2 https://svn.boost.org/trac10/ticket/4128#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> I believe this should be reported to the docutils guys - it appears not to be within our control to fix this? </p> <p> Closing down for now. </p> <p> John. </p> Ticket Daniel James Wed, 21 Apr 2010 12:09:59 GMT <link>https://svn.boost.org/trac10/ticket/4128#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4128#comment:3</guid> <description> <p> Looking at the MPL documentation, inspect seems to be complaining about things like: </p> <pre class="wiki">&lt;div class="section" id="the-problem"&gt; &lt;h2&gt;&lt;a name="the-problem"&gt;The Problem&lt;/a&gt;&lt;/h2&gt; ... &lt;/div&gt; </pre><p> which is valid, since both the <code>name</code> and <code>id</code> attributes are unique. IIRC modern browsers will use the <code>id</code> and ignore the <code>name</code> in this case. Although, it's a pain for inspect to recognise that the <code>id</code> and <code>name</code> are basically at the same point. I also try to avoid putting any content inside anchors used as bookmarks, as it makes them look like links, when they aren't (you can see this in the <a href="http://www.boost.org/doc/libs/1_42_0/libs/mpl/doc/tutorial/broken-integral-constant.html">MPL documentation</a>). </p> <p> Inspect is probably wrong to complain about this case, but it's not very good use of html. </p> </description> <category>Ticket</category> </item> </channel> </rss>