diff options
author | otsune | 2009-06-17 22:32:03 +0000 |
---|---|---|
committer | otsune | 2009-06-17 22:32:03 +0000 |
commit | 09c2737e16b8b95b8e82d748b78ecd8f2404735d (patch) | |
tree | 7d59151317ee9d1053d407a242dd544c379de9dc /xpath_hint.js | |
parent | 18a1cb21fced55e4c8fd68461ef02d29055cfe26 (diff) | |
download | vimperator-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
Diffstat (limited to 'xpath_hint.js')
-rw-r--r-- | xpath_hint.js | 4 |
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; |