]> Cypherpunks repositories - gostls13.git/commit
html/template: include itself while cloning
authorNodir Turakulov <nodir@google.com>
Tue, 20 Oct 2015 16:02:28 +0000 (09:02 -0700)
committerAndrew Gerrand <adg@golang.org>
Tue, 20 Oct 2015 23:53:27 +0000 (23:53 +0000)
commitcf59c1f9ccac9a9078d783061c7715f4d6b7e5e2
tree12d22a739934042a182e1598e6ac9b720b260d86
parent09eb58893febcf486cb7c6ef701625288d893b10
html/template: include itself while cloning

template.Clone() initialized template set incorrectly:
it didn't include itself.

* include itself in template set while cloning
* add a test

Fixes #12996

Change-Id: I932530e4f7f1bbebf833e12b000a5ce052bc9223
Reviewed-on: https://go-review.googlesource.com/16104
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/html/template/template.go
src/html/template/template_test.go [new file with mode: 0644]