Summary | Anchors broken in HTML mails |
Queue | IMP |
Queue Version | 6.2.15 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | |
Requester | marth (at) tsvschlieben (dot) de |
Created | 09/06/2016 (3226 days ago) |
Due | |
Updated | 09/21/2016 (3211 days ago) |
Assigned | |
Resolved | 09/21/2016 (3211 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Not A Bug
bug #8695State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Anchors broken in HTML mails
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
Testcase:
<html>
<head>
<!--a75c305b1c0a6022--><meta http-equiv="content-type"
content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<p><a href="#test">Anchor</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<a name="test"></a>I'm here</p>
</body>
</html>
Expected result: Jump to the anchor when clicking the link in the mail
Result: No link at all
This seems to be the resulting source (taken from Firefox Inspector):
<iframe class="htmlMsgData" id="ETd12FYc3NieMoJL8GIh3vo"
src="javascript:false" style="height: 486px;" frameborder="0">
<html>
<head><!--a75c305b1c0a6022--><meta http-equiv="content-type"
content="text/html; charset=UTF-8">
<title></title>
<!--a75c305b1c0a6022--><meta http-equiv="x-dns-prefetch-control"
value-equiv="off"><style type="text/css">
:root #content > #center > .dose > .dosesingle,
:root #content > #right > .dose > .dosesingle,
:root #header + #content > #left > #rlblock_left
{ display: none !important; }</style></head>
<body style="font-family: Arial; font-size: 14px; width: auto ! important;">
<p><a>Anchor</a><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<a name="test" id="test"></a>I'm here</p>
</body>
</html>
</html>
</iframe>
You see the broken anchor link (a double closing tag for <html> as
well but I think that is not related to the issue)