1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 20:42:27 +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:29:49 +00:00
parent cc16a55e38
commit e22b0356b7

View File

@@ -178,7 +178,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;
}, },