go/src/html
Nodir Turakulov ffd1c781b7 html/template: check "type" attribute in <script>
Currently any script tag is treated as a javascript container, although
<script type="text/template"> must not be. Check "type" attribute of
"script" tag. If it is present and it is not a JS MIME type, do not
transition to elementScript state.

Fixes #12149, where // inside text template was treated as regexp.
Fixes #6701

Change-Id: I8fc9e504f7280bdd800f40383c061853665ac8a2
Reviewed-on: https://go-review.googlesource.com/14336
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2016-09-29 20:12:31 +00:00
..
template html/template: check "type" attribute in <script> 2016-09-29 20:12:31 +00:00
entity.go
entity_test.go
escape.go html: fix typo in UnescapeString string docs 2016-04-10 18:50:25 +00:00
escape_test.go html: speed up UnescapeString 2015-08-22 12:45:38 +00:00
example_test.go html: add examples to the functions 2015-06-19 05:15:22 +00:00