diff options
| author | Jez Ng | 2012-03-03 05:37:21 -0500 |
|---|---|---|
| committer | Jez Ng | 2012-03-06 08:43:10 -0500 |
| commit | 9fb216784414c8630b51ebd6d67fb4df3ca36e84 (patch) | |
| tree | 2068df93b77f078de9efff3b067bfdd1c533d804 /linkHints.js | |
| parent | 9e1ac462c87eff0f7bad4f2cb78a65320f890ef2 (diff) | |
| download | vimium-9fb216784414c8630b51ebd6d67fb4df3ca36e84.tar.bz2 | |
Consider elements with 'button' in their class as clickable.
Diffstat (limited to 'linkHints.js')
| -rw-r--r-- | linkHints.js | 2 |
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. |
