aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKohei Suzuki2013-08-31 16:14:21 +0900
committerKohei Suzuki2013-08-31 16:14:21 +0900
commitb1896a74b701997bd77677f1ee84ca8e8f834c92 (patch)
tree77f38813325b48db69ab893e76760cccedf99880
parenta0da898d6090e5eaa6dd401873e98e0b2573428e (diff)
downloadvimperator-plugins-b1896a74b701997bd77677f1ee84ca8e8f834c92.tar.bz2
walk-input.js: Walk on contenteditable elements
-rw-r--r--walk-input.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/walk-input.js b/walk-input.js
index f310875..ef3db1c 100644
--- a/walk-input.js
+++ b/walk-input.js
@@ -81,7 +81,7 @@ var types = [
"tel",
"color",
].map(function(type) "@type=" + type.quote()).join(" or ");
-var xpath = '//input[(' + types + ' or not(@type)) and not(@disabled)] | //textarea';
+var xpath = '//input[(' + types + ' or not(@type)) and not(@disabled)] | //textarea | //*[@contenteditable="true"]';
function isVisible (elem) {
while (elem && !(elem instanceof HTMLDocument)) {