go/src/html/template
Emmanuel Odeke d54b60a2b2 html/template: lock in application/json as valid JS test
CL https://go-review.googlesource.com/33899 added
application/json as a mimeType for valid JS. Let's
lock that fix in with a test.

Updates #18159

Change-Id: Ic4dfd8929aebfc5410f796688f081ca06630f672
Reviewed-on: https://go-review.googlesource.com/33901
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Nodir Turakulov <nodir@google.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
2016-12-04 03:59:31 +00:00
..
attr.go
clone_test.go html/template: fix multiple Clones of redefined template 2016-11-15 04:30:20 +00:00
content.go html/template: mention risks of the CSS, HTML, JS, etc. types 2016-05-18 18:31:18 +00:00
content_test.go html/template: check "type" attribute in <script> 2016-09-29 20:12:31 +00:00
context.go html/template: check "type" attribute in <script> 2016-09-29 20:12:31 +00:00
css.go
css_test.go
doc.go all: spell "marshal" and "unmarshal" consistently 2016-11-12 00:13:35 +00:00
error.go html/template: adjust ambiguous URL context text 2016-10-19 17:40:43 +00:00
escape.go html/template: adjust ambiguous URL context text 2016-10-19 17:40:43 +00:00
escape_test.go html/template: adjust ambiguous URL context text 2016-10-19 17:40:43 +00:00
example_test.go
examplefiles_test.go
html.go
html_test.go
js.go html/template: escape JS in application/json script tag 2016-12-04 02:33:58 +00:00
js_test.go html/template: lock in application/json as valid JS test 2016-12-04 03:59:31 +00:00
template.go html/template: fix multiple Clones of redefined template 2016-11-15 04:30:20 +00:00
template_test.go html/template, text/template: docs and fixes for template redefinition 2016-10-24 15:43:24 +00:00
transition.go html/template: check "type" attribute in <script> 2016-09-29 20:12:31 +00:00
transition_test.go
url.go html/template: typo fix 2016-11-14 21:28:31 +00:00
url_test.go