html/template: template.HTML being escaped (rather than included verbatim) sometimes #20842
Labels
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
release-blocker
Milestone
I've spotted a regression in
html/template
behavior in Go 1.9 Beta 2.I investigated and was able to reduce it the following relatively minimal test case.
https://play.golang.org/p/BrsSxT5CQK
Output with go1.8.3:
Output with go1.9beta2:
I suspected this is caused by CL 37880, and I've confirmed that hunch. 9ffd933 is the first bad commit; its parent does not have the regression. /cc @stjj89 @rsc @mikesamuel @cespare
My understanding is that this is an unintended bug, because the commit message says:
But no panics/errors are reported. Only the output is different.
(Adding milestone Go1.9, please let me know if that's not correct.)
The text was updated successfully, but these errors were encountered: