]> Cypherpunks repositories - gostls13.git/commit
encoding/xml: fix namespaces in a>b tags
authorRoger Peppe <rogpeppe@gmail.com>
Wed, 25 Feb 2015 13:42:54 +0000 (13:42 +0000)
committerroger peppe <rogpeppe@gmail.com>
Tue, 3 Mar 2015 14:03:37 +0000 (14:03 +0000)
commitb69ea0185146fc114a5025af666fbb9590d7b518
tree0e0e9b5f52671b1f94413633a8d8c012b2572d94
parent25da594c6a7c167c46d226dae9fb614f1dff88b3
encoding/xml: fix namespaces in a>b tags

Previously, if there was a namespace defined on
a a>b tag, the namespace was ignored when
printing the parent elements. This fixes that,
and also fixes the racy behaviour of printerStack.trim
as discussed in https://go-review.googlesource.com/#/c/4152/10 .

Fixes #9796.

Change-Id: I75f97f67c08bbee151d1e0970f8462dd0f4511ef
Reviewed-on: https://go-review.googlesource.com/5910
Reviewed-by: Nigel Tao <nigeltao@golang.org>
src/encoding/xml/marshal.go
src/encoding/xml/marshal_test.go