aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2014-06-20 23:49:35 +0900
committeranekos2014-06-20 23:49:35 +0900
commitf4af26bd594e06881be52f6cd48562104724977e (patch)
tree8eae188a15183da024d0fd493013f79305b03f32
parent3cd8758bd74481a6d827b82a4ef8a337a8ee8369 (diff)
parentb1896a74b701997bd77677f1ee84ca8e8f834c92 (diff)
downloadvimperator-plugins-f4af26bd594e06881be52f6cd48562104724977e.tar.bz2
Merge pull request #50 from eagletmt/walk-input_contenteditable
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)) {