aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932014-12-16 22:04:28 +0000
committermrmr19932014-12-16 22:04:28 +0000
commit09f8527915eae8067072277e2b161493ede359cd (patch)
treed4206ddc83e2f9cd5b4b3a0376d182b6136a9510
parent243a77854c505b8bbdae7e4822c6239afb904d35 (diff)
downloadvimium-09f8527915eae8067072277e2b161493ede359cd.tar.bz2
Ensure we click <input type="submit"> elements
-rw-r--r--lib/dom_utils.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index dfaa5d5f..a0ac0bd3 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -95,11 +95,11 @@ DomUtils =
#
# The html5 input types that should use simulateSelect are:
# ["date", "datetime", "datetime-local", "email", "month", "number", "password", "range", "search",
- # "submit", "tel", "text", "time", "url", "week"]
+ # "tel", "text", "time", "url", "week"]
# An unknown type will be treated the same as "text", in the same way that the browser does.
#
isSelectable: (element) ->
- unselectableTypes = ["button", "checkbox", "color", "file", "hidden", "image", "radio", "reset"]
+ unselectableTypes = ["button", "checkbox", "color", "file", "hidden", "image", "radio", "reset", "submit"]
(element.nodeName.toLowerCase() == "input" && unselectableTypes.indexOf(element.type) == -1) ||
element.nodeName.toLowerCase() == "textarea"