diff options
author | anekos | 2011-06-27 23:34:46 +0900 |
---|---|---|
committer | anekos | 2011-06-27 23:34:46 +0900 |
commit | 372471280df74fbf62c49260adb8d68d3a9a4091 (patch) | |
tree | d32f26ab17354f3adcabfacab451d5f37c8a5a3c /walk-input.js | |
parent | d68b99898e9f1738e43c874d10267d85e8e9a0fb (diff) | |
download | vimperator-plugins-372471280df74fbf62c49260adb8d68d3a9a4091.tar.bz2 |
input[@disabled="disabled"] を無視するようにした
Diffstat (limited to 'walk-input.js')
-rw-r--r-- | walk-input.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/walk-input.js b/walk-input.js index a1609bc..be214aa 100644 --- a/walk-input.js +++ b/walk-input.js @@ -1,6 +1,6 @@ // Vimperator plugin: 'Walk Input' // License: BSD -// Version: 1.2.1 +// Version: 1.2.2 // Maintainer: Takayama Fumihiko <tekezo@pqrs.org> // anekos <anekos@snca.net> @@ -20,7 +20,7 @@ // PLUGIN_INFO {{{ let INFO = -<plugin name="Walk-Input" version="1.2.1" +<plugin name="Walk-Input" version="1.2.2" href="http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/walk-input.js" summary="The focus walks 'input' and 'textarea' element." xmlns="http://vimperator.org/namespaces/liberator"> @@ -82,7 +82,7 @@ var types = [ "tel", "color", ].map(function(type) "@type=" + type.quote()).join(" or "); -var xpath = '//input[' + types + ' or not(@type)] | //textarea'; +var xpath = '//input[(' + types + ' or not(@type)) and not(@disabled="disabled")] | //textarea'; function isVisible (elem) { while (elem && !(elem instanceof HTMLDocument)) { @@ -129,6 +129,7 @@ var walkinput = function (forward) { var elem = forward ? (next || list[0]) : (prev || list[list.length - 1]); + liberator.log(elem.element); if (!current || current.frame != elem.frame) elem.frame.focus(); elem.element.focus(); |