go/src/html/template
Ian Lance Taylor 3d85c69a0b html/template: revert "avoid race when escaping updates template"
This reverts CLs 274450 and 279492, except for the new tests.
The new race test is changed to skip, as it now fails.
We can try again for 1.17.

Original CL descriptions:

    html/template: attach functions to namespace

    The text/template functions are stored in a data structure shared by
    all related templates, so do the same with the original, unwrapped,
    functions on the html/template side.

    html/template: avoid race when escaping updates template

For #39807
Fixes #43855

Change-Id: I2ce91321ada06ea496a982aefe170eb5af9ba847
Reviewed-on: https://go-review.googlesource.com/c/go/+/285957
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
2021-01-25 20:41:05 +00:00
..
testdata html/template, text/template: add ParseFS 2020-10-20 18:41:14 +00:00
attr.go
attr_string.go
clone_test.go all: update references to symbols moved from io/ioutil to io 2020-10-20 18:41:18 +00:00
content.go
content_test.go
context.go
css.go
css_test.go
delim_string.go
doc.go
element_string.go
error.go
escape.go
escape_test.go encoding/json: revert "add "json: " prefix to SyntaxError messages" 2020-12-01 22:51:45 +00:00
example_test.go
examplefiles_test.go all: update to use os.ReadFile, os.WriteFile, os.CreateTemp, os.MkdirTemp 2020-12-09 19:12:23 +00:00
exec_test.go html/template: revert "avoid race when escaping updates template" 2021-01-25 20:41:05 +00:00
html.go
html_test.go
js.go
js_test.go
jsctx_string.go
multi_test.go html/template, text/template: add ParseFS 2020-10-20 18:41:14 +00:00
state_string.go
template.go html/template: revert "avoid race when escaping updates template" 2021-01-25 20:41:05 +00:00
template_test.go
transition.go
transition_test.go
url.go
url_test.go
urlpart_string.go