encoding/xml: minor improvement to namespace mismatch in closing tag #48890
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?play.golang.org (1.17.2)
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?N/A
What did you do?
https://play.golang.org/p/2J4gNo_saN3
What did you expect to see?
Error message about closing tag being in wrong namespace
What did you see instead?
The error message is accurate:
However there are a couple of ways this could be improved.
e.g. this would be better:
Reference: https://github.com/golang/go/blob/master/src/encoding/xml/xml.go#L502
The text was updated successfully, but these errors were encountered: