aboutsummaryrefslogtreecommitdiffstats
path: root/linkHints.js
diff options
context:
space:
mode:
authorJez Ng2012-03-03 05:37:21 -0500
committerJez Ng2012-03-06 08:43:10 -0500
commit9fb216784414c8630b51ebd6d67fb4df3ca36e84 (patch)
tree2068df93b77f078de9efff3b067bfdd1c533d804 /linkHints.js
parent9e1ac462c87eff0f7bad4f2cb78a65320f890ef2 (diff)
downloadvimium-9fb216784414c8630b51ebd6d67fb4df3ca36e84.tar.bz2
Consider elements with 'button' in their class as clickable.
Diffstat (limited to 'linkHints.js')
-rw-r--r--linkHints.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/linkHints.js b/linkHints.js
index bbdf30ba..e25dab9a 100644
--- a/linkHints.js
+++ b/linkHints.js
@@ -36,7 +36,7 @@ var linkHints = {
*/
clickableElementsXPath: domUtils.makeXPath(["a", "area[@href]", "textarea", "button", "select",
"input[not(@type='hidden' or @disabled or @readonly)]",
- "*[@onclick or @tabindex or @role='link' or @role='button' or " +
+ "*[@onclick or @tabindex or @role='link' or @role='button' or contains(@class, 'button') or " +
"@contenteditable='' or translate(@contenteditable, 'TRUE', 'true')='true']"]),
// We need this as a top-level function because our command system doesn't yet support arguments.