go/src/encoding
Hajime Hoshi 2db587c029 encoding/xml: Reset the parent stack before printing a chardata or comment field in a struct
This CL resets the parent stack when printing a character or comment field struct.
In the case of XML elements, the previous parents stack must be considered. However,
charadata or comment fields can't be printed in other fields so it seems required to reset
the parent stack each time a chardata or comment field is printed.

Fixes #5072

Change-Id: I84f61c9bfce94133cd0c076c11211b9be5b4b1ac
Reviewed-on: https://go-review.googlesource.com/9910
Reviewed-by: Nigel Tao <nigeltao@golang.org>
Reviewed-by: roger peppe <rogpeppe@gmail.com>
2015-06-04 07:16:25 +00:00
..
ascii85
asn1 encoding/asn1: Improved control of flags and times 2015-04-28 16:35:13 +00:00
base32
base64 encoding/base64: Optimize EncodeToString and DecodeString. 2015-04-24 01:45:43 +00:00
binary encoding/binary: cull dead code 2015-03-14 02:51:22 +00:00
csv encoding/csv: Preallocate records slice 2015-04-26 16:28:51 +00:00
gob encoding/gob: fix infinite recursion caused by ignoring recursive type 2015-06-01 18:42:29 +00:00
hex
json encoding/json: fix decoding of types with '[]byte' as underlying type 2015-05-15 16:26:53 +00:00
pem encoding/pem: be more permissive about decoding empty blocks. 2015-05-31 18:14:29 +00:00
xml encoding/xml: Reset the parent stack before printing a chardata or comment field in a struct 2015-06-04 07:16:25 +00:00
encoding.go