From: Russ Cox Date: Thu, 13 Sep 2012 14:53:00 +0000 (-0400) Subject: html/template: fix URL doc X-Git-Tag: go1.1rc2~2461 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=37721cc1ce19269afb1a32bc14c51c4a4beb7b8b;p=gostls13.git html/template: fix URL doc This is the easy part of issue 3528. (What to do about "noescape" is the hard part, left open.) Update #3528. R=mikesamuel, r, dsymonds CC=golang-dev https://golang.org/cl/6493113 --- diff --git a/src/pkg/html/template/content.go b/src/pkg/html/template/content.go index c1bd2e4949..42ea7930f0 100644 --- a/src/pkg/html/template/content.go +++ b/src/pkg/html/template/content.go @@ -47,7 +47,7 @@ type ( // JSStr("foo\\nbar") is fine, but JSStr("foo\\\nbar") is not. JSStr string - // URL encapsulates a known safe URL as defined in RFC 3896. + // URL encapsulates a known safe URL or URL substring (see RFC 3986). // A URL like `javascript:checkThatFormNotEditedBeforeLeavingPage()` // from a trusted source should go in the page, but by default dynamic // `javascript:` URLs are filtered out since they are a frequently