aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotsune2009-06-17 22:32:03 +0000
committerotsune2009-06-17 22:32:03 +0000
commit09c2737e16b8b95b8e82d748b78ecd8f2404735d (patch)
tree7d59151317ee9d1053d407a242dd544c379de9dc
parent18a1cb21fced55e4c8fd68461ef02d29055cfe26 (diff)
downloadvimperator-plugins-09c2737e16b8b95b8e82d748b78ecd8f2404735d.tar.bz2
use id function
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34023 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--xpath_hint.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/xpath_hint.js b/xpath_hint.js
index e44a157..af0cab4 100644
--- a/xpath_hint.js
+++ b/xpath_hint.js
@@ -10,7 +10,7 @@ var PLUGIN_INFO =
<name>{NAME}</name>
<description>add "get element's XPath" hint mode</description>
<author mail="konbu.komuro@gmail.com" homepage="http://d.hatena.ne.jp/hogelog/">hogelog</author>
- <version>0.1.1</version>
+ <version>0.1.2</version>
<minVersion>2.0pre</minVersion>
<maxVersion>2.0pre</maxVersion>
<updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/xpath_hint.js</updateURL>
@@ -37,7 +37,7 @@ let xh = plugins.xpath_hint = {
return "";
}
if (elem.hasAttribute("id")) {
- return '//*[@id="'+elem.getAttribute("id")+'"]';
+ return 'id("'+elem.getAttribute("id")+'")';
}
let name = elem.tagName.toLowerCase();
let parent = elem.parentNode;