1
0
mirror of https://github.com/golang/go synced 2024-10-04 16:31:22 -06:00
go/src/pkg/html
Rob Pike e2e9d1d684 html/template: update the Tree field after parsing new templates
After text/template.Parse, all the templates may have changed, so
we need to set them all back to their unescaped state. The code
did this but (mea culpa) forgot to set the Tree field of the html/template
struct.

Since the Tree is reset during escaping, this only matters if an error
arises during escaping and we want to print a message.

Fixes #6459.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/13877043
2013-09-25 10:00:09 +10:00
..
template html/template: update the Tree field after parsing new templates 2013-09-25 10:00:09 +10:00
entity_test.go renaming_2: gofix -r go1pkgrename src/pkg/[a-l]* 2011-11-08 15:40:58 -08:00
entity.go gofmt: apply gofmt -w -s src misc 2012-10-09 17:01:28 -07:00
escape_test.go html: add escaping tests 2013-07-10 17:31:46 +10:00
escape.go various: deleted unused items 2013-08-03 16:01:04 +10:00