1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 01:44:13 +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)
{
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
return str;
},