From 4f65a3a9a17809c9bba815dbb755e7b6e2e06420 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 24 Mar 2010 13:25:47 +0000 Subject: [PATCH] =?UTF-8?q?XPath=E5=BC=8F=E3=82=92=E6=94=B9=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6422 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- modules/utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/utils.js b/modules/utils.js index f6bc13b5..9eae0d8f 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -1262,7 +1262,10 @@ var TreeStyleTabUtils = { var id = aTab.getAttribute(this.kID); if (!id) return null; // not initialized yet return this.evaluateXPath( - 'preceding-sibling::xul:tab[contains(concat("|", @'+this.kCHILDREN+', "|"), "|'+id+'|")]', + 'preceding-sibling::xul:tab[contains('+ + 'concat("|", @'+this.kCHILDREN+', "|"),'+ + '"|'+id+'|"'+ + ')][1]', aTab, Ci.nsIDOMXPathResult.FIRST_ORDERED_NODE_TYPE ).singleNodeValue;