From b3d8e6d7f456eac13f29b21a9930e2b2ce0c4cae Mon Sep 17 00:00:00 2001 From: Mike Samuel Date: Mon, 26 Sep 2011 00:10:21 -0700 Subject: [PATCH] exp/template/html: remove TODO comments that have been done or mooted R=nigeltao CC=golang-dev https://golang.org/cl/5128041 --- src/pkg/exp/template/html/transition.go | 3 --- src/pkg/exp/template/html/url.go | 4 ---- 2 files changed, 7 deletions(-) diff --git a/src/pkg/exp/template/html/transition.go b/src/pkg/exp/template/html/transition.go index dd8cd59a6f..15548043b6 100644 --- a/src/pkg/exp/template/html/transition.go +++ b/src/pkg/exp/template/html/transition.go @@ -9,9 +9,6 @@ import ( "strings" ) -// TODO: ensure transition error messages contain template name and ideally -// line info. - // transitionFunc is the array of context transition functions for text nodes. // A transition function takes a context and template text input, and returns // the updated context and the number of bytes consumed from the front of the diff --git a/src/pkg/exp/template/html/url.go b/src/pkg/exp/template/html/url.go index 8a43e63645..8fdc8f77e8 100644 --- a/src/pkg/exp/template/html/url.go +++ b/src/pkg/exp/template/html/url.go @@ -21,13 +21,9 @@ func urlFilter(args ...interface{}) string { if i >= 0 && strings.IndexRune(s[:i], '/') < 0 { protocol := strings.ToLower(s[:i]) if protocol != "http" && protocol != "https" && protocol != "mailto" { - // Return a value that someone investigating a bug - // report can put into a search engine. return "#" + filterFailsafe } } - // TODO: Once we handle - // we will need to stop this from HTML escaping and pipeline sanitizers. return s } -- 2.50.0