1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-14 05:05:46 +01:00

fix util.highlightURL to use the unnamed anchor for link href values to prevent

:pageinfo links from being loaded in the MOW
This commit is contained in:
Doug Kearns
2007-12-09 10:31:35 +00:00
parent 49d7cc87be
commit 835570125b

View File

@@ -170,7 +170,7 @@ vimperator.util = { //{{{
highlightURL: function (str, force) highlightURL: function (str, force)
{ {
if (force || /^[a-zA-Z]+:\/\//.test(str)) if (force || /^[a-zA-Z]+:\/\//.test(str))
return "<a class='hl-URL' href='" + str + "'>" + vimperator.util.escapeHTML(str) + "</a>"; return "<a class='hl-URL' href='#'>" + vimperator.util.escapeHTML(str) + "</a>";
else else
return str; return str;
}, },