• Rob Pike's avatar
    html/template: update the Tree field after parsing new templates · e2e9d1d6
    Rob Pike authored
    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
    e2e9d1d6
Name
Last commit
Last update
..
attr.go Loading commit data...
clone_test.go Loading commit data...
content.go Loading commit data...
content_test.go Loading commit data...
context.go Loading commit data...
css.go Loading commit data...
css_test.go Loading commit data...
doc.go Loading commit data...
error.go Loading commit data...
escape.go Loading commit data...
escape_test.go Loading commit data...
html.go Loading commit data...
html_test.go Loading commit data...
js.go Loading commit data...
js_test.go Loading commit data...
template.go Loading commit data...
transition.go Loading commit data...
url.go Loading commit data...
url_test.go Loading commit data...