From b1896a74b701997bd77677f1ee84ca8e8f834c92 Mon Sep 17 00:00:00 2001 From: Kohei Suzuki Date: Sat, 31 Aug 2013 16:14:21 +0900 Subject: walk-input.js: Walk on contenteditable elements --- walk-input.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'walk-input.js') 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)) { -- cgit v1.2.3