[Tickets #14458] Anchors broken in HTML mails
noreply at bugs.horde.org
noreply at bugs.horde.org
Tue Sep 6 11:27:17 UTC 2016
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE
E-MAIL-ADRESSE WERDEN NICHT GELESEN.
Ticket-URL: https://bugs.horde.org/ticket/14458
------------------------------------------------------------------------------
Ticket | 14458
Erstellt Von | marth at tsvschlieben.de
Zusammenfassung | Anchors broken in HTML mails
Warteschlange | IMP
Version | 6.2.15
Typ | Bug
Status | Unconfirmed
Priorität | 1. Low
Milestone |
Patch |
Zuständige |
------------------------------------------------------------------------------
marth at tsvschlieben.de (2016-09-06 11:27) hat geschrieben:
IMP destroys HTML anchors.
Testcase:
<html>
<head>
<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><meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<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)
More information about the bugs
mailing list