| Title | Heading Anchor breaks CSS (patch provided) |
| Date | 12-May-2005 13:40:27 EEST |
| Version | 2.2.13-beta |
| Submitter | Matthias Marschall![]() |
| Bug criticality | CosmeticBug |
| Browser version | IE 6.0, Firefox 1.0.3 |
| Bug status | ClosedBug |
| PageProvider used | |
| Servlet Container | tomcat 5.0 |
| Operating System | freeBSD |
| URL | |
| Java version | 1.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>";
