TitleHeading Anchor breaks CSS (patch provided)
Date12-May-2005 13:40:27 EEST
Version2.2.13-beta
SubmitterMatthias Marschall
Bug criticalityCosmeticBug
Browser versionIE 6.0, Firefox 1.0.3
Bug statusClosedBug
PageProvider used
Servlet Containertomcat 5.0
Operating SystemfreeBSD
URL
Java version1.4.2_07
Duplicates BugBrokenHeadingAnchors

a heading anchor is now created like this:

<a name="..."/>

this seems to be a problem for CSS styling anchors. The CSS style given to the anchor will be applied to all text from that anchor to the next </a> of the next anchor.

I fixed makeHeadingAnchor method in TranslatorReader to render:

<a name="..."></a>

This fixes the CSS issue.

Here is my trivial patch for TranslatorReader:

diff TranslatorReader.java.orig TranslatorReader.java: 2716c2716 < return "<a name=\""+hd.m_titleAnchor+"\"/>"; --- > return "<a name=\""+hd.m_titleAnchor+"\"></a>";

Matthias Marschall


See BugBrokenHeadingAnchors

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-5) was last changed on 13-May-2005 18:44 by Administrator