go/src/html
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
..
template html/template: revert "avoid race when escaping updates template" 2021-01-25 20:41:05 +00:00
entity.go html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
entity_test.go html: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
escape.go html: update URL in comment 2020-01-13 07:00:18 +00:00
escape_test.go
example_test.go
fuzz.go html: add a Fuzz function 2019-04-30 15:48:46 +00:00