From 2bed184abb33de1585e203319c00f30b29c840a8 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 13 Jan 2009 00:21:15 +0900 Subject: [PATCH] Fixed the method of getting href. --- common/content/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/content/ui.js b/common/content/ui.js index 87735518..8eb7cc3f 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -1405,8 +1405,8 @@ function CommandLine() //{{{ { event.preventDefault(); let target = event.button == 0 ? liberator.CURRENT_TAB : liberator.NEW_TAB; - if (event.target.href == "#") - liberator.open(String(event.target), target); + if (event.target.getAttribute("href") == "#") + liberator.open(event.target.textContent, target); else liberator.open(event.target.href, target); }