1
0
mirror of https://github.com/golang/go synced 2024-09-28 17:24:28 -06:00

doc/go1.21: mention html/template.ErrJSTemplate

For #59584

Change-Id: Iaa3f8b23010ad452c134ac608c63d2a41cc4e409
Reviewed-on: https://go-review.googlesource.com/c/go/+/501698
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
TryBot-Bypass: Ian Lance Taylor <iant@google.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
This commit is contained in:
Ian Lance Taylor 2023-06-07 17:07:59 -07:00 committed by Gopher Robot
parent cc99093dfa
commit 471561c590

View File

@ -735,12 +735,11 @@ Do not send CLs removing the interior tags from such phrases.
<dl id="html/template"><dt><a href="/pkg/html/template/">html/template</a></dt>
<dd>
<p><!-- https://go.dev/issue/59584 -->
TODO: <a href="https://go.dev/issue/59584">https://go.dev/issue/59584</a>: expose ErrJSTemplate
</p>
<p><!-- CL 496395 -->
TODO: <a href="https://go.dev/cl/496395">https://go.dev/cl/496395</a>: html/template: expose ErrJSTemplate; modified api/next/59584.txt
<p><!-- https://go.dev/issue/59584, CL 496395 -->
The new error
<a href="/pkg/html/template/#ErrJSTemplate"><code>ErrJSTemplate</code></a>
is returned when an action appears in a JavaScript template
literal. Previously an unexported error was returned.
</p>
</dd>
</dl><!-- html/template -->