Don't remove target attributes with none _blank value.
authorDaniel Carl <danielcarl@gmx.de>
Wed, 13 Mar 2013 21:35:22 +0000 (22:35 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Wed, 13 Mar 2013 21:35:22 +0000 (22:35 +0100)
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.

src/hints.js

index 019706b..1d8e9ab 100644 (file)
@@ -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);