From: Daniel Carl <danielcarl@gmx.de>
Date: Wed, 13 Mar 2013 21:35:22 +0000 (+0100)
Subject: Don't remove target attributes with none _blank value.
X-Git-Url: https://git.owens.tech/assets/dummy.html/assets/dummy.html/git?a=commitdiff_plain;h=1ccfdf538f27dcc595d5f5cf7ee88aad7e735136;p=vimb.git

Don't remove target attributes with none _blank value.

If a framesite uses the target attribute to open a link into a defined frame
we removed this useful attribute too during hinting the link. Now only target
via value _blank are removed just before clicking the hint.
---

diff --git a/src/hints.js b/src/hints.js
index 019706b..1d8e9ab 100644
--- a/src/hints.js
+++ b/src/hints.js
@@ -232,7 +232,7 @@ VimpHints = function Hints(mode, usage, bg, bgf, fg, style, maxHints) {
         if (newWin) {
             /* set target to open in new window */
             e.target = "_blank";
-        } else {
+        } else if (e.target === "_blank") {
             e.removeAttribute("target");
         }
         _click(e);