]> git.scottworley.com Git - reliable-chat/commitdiff
Links should be rel="nofollow"
authorScott Worley <sworley@chkno.net>
Sun, 5 Aug 2012 05:34:18 +0000 (22:34 -0700)
committerScott Worley <sworley@chkno.net>
Sun, 5 Aug 2012 05:34:18 +0000 (22:34 -0700)
Though if this ever becomes relevant, something else has gone wrong.

webclient/rc.html

index 01dc1681dc29f8afa47b98f7a0d03241c541cb73..3b92348fca076a845249b1635b901130607542b0 100644 (file)
                                text_span.appendChild(document.createTextNode(leading_text));
                        }
                        var anchor = document.createElement("a");
                                text_span.appendChild(document.createTextNode(leading_text));
                        }
                        var anchor = document.createElement("a");
+                       anchor.setAttribute("rel", "nofollow");
                        anchor.setAttribute("href", encodeURI(match[0]));
                        anchor.appendChild(document.createTextNode(match[0]));
                        text_span.appendChild(anchor);
                        anchor.setAttribute("href", encodeURI(match[0]));
                        anchor.appendChild(document.createTextNode(match[0]));
                        text_span.appendChild(anchor);