From 09c2737e16b8b95b8e82d748b78ecd8f2404735d Mon Sep 17 00:00:00 2001
From: otsune
Date: Wed, 17 Jun 2009 22:32:03 +0000
Subject: use id function
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34023 d0d07461-0603-4401-acd4-de1884942a52
---
xpath_hint.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'xpath_hint.js')
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}
add "get element's XPath" hint mode
hogelog
- 0.1.1
+ 0.1.2
2.0pre
2.0pre
http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/xpath_hint.js
@@ -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;
--
cgit v1.2.3