go/src/html
Andrew Bonventre 5003b62645 html/template: add support for JavaScript modules
html/template does not properly treat JavaScript code as
JavaScript when using a <script> tag with "module" set as
the type attribute.

See also:
https://www.w3.org/TR/html5/semantics-scripting.html#element-attrdef-script-type and
https://html.spec.whatwg.org/multipage/scripting.html#the-script-element:module-script-2

Original change from tomut at https://golang.org/cl/135417

Fixes #31327

Change-Id: I6239be69cd7994990d091400664e4474124a98fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/175218
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-05-06 17:06:16 +00:00
..
template html/template: add support for JavaScript modules 2019-05-06 17:06:16 +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: lazily populate Unescape tables 2018-07-31 22:10:54 +00:00
escape_test.go
example_test.go
fuzz.go html: add a Fuzz function 2019-04-30 15:48:46 +00:00