From: Michael M Slusarz Date: Tue, 7 Sep 2010 08:15:30 +0000 (-0600) Subject: Bug #8695: Fix broken internal anchors in HTML data in Mozilla X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5c72a1a95ac53a826d79516138c3ee6f772a4b5e;p=horde.git Bug #8695: Fix broken internal anchors in HTML data in Mozilla --- diff --git a/imp/lib/Mime/Viewer/Html.php b/imp/lib/Mime/Viewer/Html.php index 3384f5ea2..4b2296a61 100644 --- a/imp/lib/Mime/Viewer/Html.php +++ b/imp/lib/Mime/Viewer/Html.php @@ -308,6 +308,13 @@ class IMP_Mime_Viewer_Html extends Horde_Mime_Viewer_Html /* We don't include Horde.popup() in IFRAME, so need * to use 'simple' links. */ $node->setAttribute('href', IMP::composeLink($node->getAttribute('href'), array(), true)); + } elseif ($this->_imptmp['inline'] && + isset($url['fragment']) && + empty($url['path']) && + $GLOBALS['browser']->isBrowser('mozilla')) { + /* See Bug #8695: internal anchors are broken in + * Mozilla. */ + $node->removeAttribute('href'); } elseif (!$node->hasAttribute('target')) { $node->setAttribute('target', $this->_imptmp['target']); }