diff options
author | suVene | 2009-01-06 10:36:29 +0000 |
---|---|---|
committer | suVene | 2009-01-06 10:36:29 +0000 |
commit | 4aba0c2c24edeafb874460da794a1758e0ae088d (patch) | |
tree | 1c07eeece79054a5d21c71f66d10b3281ed1a528 /multi_requester.js | |
parent | 16489364cc1e762990c4dc1ee509db84ebe8d170 (diff) | |
download | vimperator-plugins-4aba0c2c24edeafb874460da794a1758e0ae088d.tar.bz2 |
* XPath の結果判定 miss.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28014 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'multi_requester.js')
-rw-r--r-- | multi_requester.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/multi_requester.js b/multi_requester.js index 9f0b5b7..95ac2af 100644 --- a/multi_requester.js +++ b/multi_requester.js @@ -11,14 +11,14 @@ var PLUGIN_INFO = <description>request, and the result is displayed to the buffer.</description> <description lang="ja">リクエストの結果をバッファに出力する。</description> <author mail="suvene@zeromemory.info" homepage="http://zeromemory.sblo.jp/">suVene</author> - <version>0.4.10</version> + <version>0.4.11</version> <license>MIT</license> <minVersion>2.0pre</minVersion> <maxVersion>2.0pre</maxVersion> <updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/multi_requester.js</updateURL> <detail><![CDATA[ == Needs Library == -- _libly.js(ver.0.1.15) +- _libly.js(ver.0.1.19) @see http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/trunk/_libly.js == Usage == @@ -404,7 +404,7 @@ var MultiRequester = { if (node.tagName.toLowerCase() != 'html') doc.appendChild(node); }); - if (!doc) throw 'XPath result is undefined or null.: XPath -> ' + xpath; + if (!doc || !doc.childNodes.length) throw 'XPath result is undefined or null.: XPath -> ' + xpath; $U.getNodesFromXPath('descendant-or-self::a | descendant-or-self::img', doc, function(node) { var tagName = node.tagName.toLowerCase(); |