From 8a6fbbd18faff96d49ad9a3767d39657dcbdcb6a Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Sat, 19 Mar 2011 05:00:39 +0900 Subject: [PATCH] With Tab Mix Plus, closebox in pinned tabs were not hidden. --- content/treestyletab/treestyletabbrowser.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index c2e324fd..8bdd0998 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -758,7 +758,15 @@ TreeStyleTabBrowser.prototype = { endParen.setAttribute('class', this.kCOUNTER_PAREN); endParen.setAttribute('value', ')'); - label.parentNode.insertBefore(counter, label.nextSibling); + /** XXX + * Insertion before an anonymous element breaks its "xbl:inherits". + * For example, "xbl:inherits" of the closebox in a tab (Tab Mix Plus + * defines it) doesn't work. So, I don't use insertBefore(). + * Instead, the counter will be rearranged by "ordinal" attribute + * given by initTabContentsOrder(). + */ + // label.parentNode.insertBefore(counter, label.nextSibling); + label.parentNode.appendChild(counter); } var tabContentBox = document.getAnonymousElementByAttribute(aTab, 'class', 'tab-content');