From 4144a04c0a0e397830e9693b5c9ccf17b24740c5 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Fri, 12 Aug 2011 01:48:56 +0200 Subject: [PATCH] Removed unneeded xpath for hinting content of iframes. --- hinting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hinting.js b/hinting.js index 37fec60..b7184b1 100644 --- a/hinting.js +++ b/hinting.js @@ -40,7 +40,7 @@ function Hints() { if (typeof(inputText) == "undefined" || inputText == "") { xpath_expr = "//*[@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @role='link' or @href] | //input[not(@type='hidden')] | //a | //area | //textarea | //button | //select"; } else { - xpath_expr = "//*[(@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @role='link' or @href) and contains(., '" + inputText + "')] | //input[not(@type='hidden') and contains(., '" + inputText + "')] | //a[contains(., '" + inputText + "')] | //area[contains(., '" + inputText + "')] | //iframe[contains(@name, '" + inputText + "')] | //textarea[contains(., '" + inputText + "')] | //button[contains(@value, '" + inputText + "')] | //select[contains(., '" + inputText + "')]"; + xpath_expr = "//*[(@onclick or @onmouseover or @onmousedown or @onmouseup or @oncommand or @class='lk' or @role='link' or @href) and contains(., '" + inputText + "')] | //input[not(@type='hidden') and contains(., '" + inputText + "')] | //a[contains(., '" + inputText + "')] | //area[contains(., '" + inputText + "')] | //textarea[contains(., '" + inputText + "')] | //button[contains(@value, '" + inputText + "')] | //select[contains(., '" + inputText + "')]"; } var res = doc.evaluate(xpath_expr, doc, -- 2.11.4.GIT