From 3b3d1559863d2a622d375905577def417bff3471 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 29 Jul 2011 03:27:23 -0400 Subject: [PATCH] Allow superfluous trailing space in :tb* commands. Closes issue #205. --- common/content/dactyl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 5e6e764a..131380c1 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1932,7 +1932,8 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { { argCount: "0" }); function findToolbar(name) util.evaluateXPath( - "//*[@toolbarname=" + util.escapeString(name, "'") + "]", + "//*[@toolbarname=" + util.escapeString(name, "'") + " or " + + "@toolbarname=" + util.escapeString(name.trim(), "'") + "]", document).snapshotItem(0); var toolbox = document.getElementById("navigator-toolbox");