]> Cypherpunks repositories - gostls13.git/commitdiff
exp/template/html: remove TODO comments that have been done or mooted
authorMike Samuel <mikesamuel@gmail.com>
Mon, 26 Sep 2011 07:10:21 +0000 (00:10 -0700)
committerMike Samuel <mikesamuel@gmail.com>
Mon, 26 Sep 2011 07:10:21 +0000 (00:10 -0700)
R=nigeltao
CC=golang-dev
https://golang.org/cl/5128041

src/pkg/exp/template/html/transition.go
src/pkg/exp/template/html/url.go

index dd8cd59a6f5af8accfbf26d381c8eb9065047c4c..15548043b69a393fc24b1b112b85520f6893bbe2 100644 (file)
@@ -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
index 8a43e6364508a2aca132ac3fb1122f41215489ed..8fdc8f77e8eed11392c7107ae39ed62b725998bf 100644 (file)
@@ -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 <style>#id { background: url({{.Img}}) }</style>
-       // we will need to stop this from HTML escaping and pipeline sanitizers.
        return s
 }