aboutsummaryrefslogtreecommitdiffstats
path: root/walk-input.js
diff options
context:
space:
mode:
authorKohei Suzuki2015-01-14 20:31:44 +0900
committerKohei Suzuki2015-01-14 20:31:44 +0900
commitfeb5a9da3fd9a50106a5fb5df76b6cd48bbb238a (patch)
tree41e8bf73065e9ca11d13083c1b19845d262a4f55 /walk-input.js
parentfc4b39b9347f7566fbf8394b47cba524bc91565d (diff)
downloadvimperator-plugins-feb5a9da3fd9a50106a5fb5df76b6cd48bbb238a.tar.bz2
String.prototype.quote() has been removed in Firefox 37
https://github.com/vimperator/vimperator-labs/pull/113 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/quote
Diffstat (limited to 'walk-input.js')
-rw-r--r--walk-input.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/walk-input.js b/walk-input.js
index ef3db1c..6c10a31 100644
--- a/walk-input.js
+++ b/walk-input.js
@@ -80,7 +80,7 @@ var types = [
"url",
"tel",
"color",
-].map(function(type) "@type=" + type.quote()).join(" or ");
+].map(function(type) "@type=" + JSON.stringify(type)).join(" or ");
var xpath = '//input[(' + types + ' or not(@type)) and not(@disabled)] | //textarea | //*[@contenteditable="true"]';
function isVisible (elem) {