encoding/xml: does not reject duplicate attribute names #68295
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
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/TzV6Av9hMci
What did you see happen?
encoding/xml
accepted<a a="" a=""/>
, even though it has duplicatea
attributes and so is ill-formed.What did you expect to see?
encoding/xml
should reject<a a="" a=""/>
because it has duplicatea
attributes and so is ill-formed.The text was updated successfully, but these errors were encountered: