From 61b53e0efb5b39eb473e2dad09603dfe7d8fa921 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sat, 21 Dec 2013 19:14:05 +0100 Subject: [PATCH] Don't hint images that are surrounded by link (#53). --- src/hints.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hints.js b/src/hints.js index 58b9b1e..fc31f26 100644 --- a/src/hints.js +++ b/src/hints.js @@ -475,7 +475,7 @@ var VbHint = (function(){ ot: "//*[@href] | //*[@onclick or @tabindex or @class='lk' or @role='link' or @role='button'] | //input[not(@type='hidden' or @disabled or @readonly)] | //textarea[not(@disabled or @readonly)] | //button | //select", e: "//input[not(@type) or @type='text'] | //textarea", iI: "//img[@src]", - OpPsTy: "//*[@href] | //img[@src] | //iframe[@src]" + OpPsTy: "//*[@href] | //img[@src and not(ancestor::a)] | //iframe[@src]" }, /* holds the actions to perform on hint fire */ actionmap = { -- 2.20.1