Open DemiMarie opened 3 months ago
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
@rsc
Please note this related comment https://github.com/golang/go/issues/68293#issuecomment-2207866996
Please note this related comment #68293 (comment)
Change https://go.dev/cl/609377 mentions this issue: encoding/xml: treat a namespaced name as two names, not one
Go version
go version go1.21.11 linux/amd64
Output of
go env
in your module/workspace:What did you do?
https://go.dev/play/p/KE2dyxD0acX
What did you see happen?
xml.Unmarshal
accepts<:a/>
,<a:/>
,<a :b="c"/>
, and<a b:="c"/>
.What did you expect to see?
xml.Unmarshal
should return an error because<:a/>
,<a:/>
,<a :b="c"/>
, and<a b:="c"/>
are all ill-formed XML. An XML name must not start or end with a colon.