encoding/xml: does not reject non-space before the root element or after the end of the root element #68332
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Go version
1.22.5 (this is from
pkg.go.dev
)Output of
go env
in your module/workspace:What did you do?
https://go.dev/play/p/SJIiUJ7VZW5
What did you see happen?
encoding/xml
reports whitespace before and after the root element asxml.CharData
, but this is wrong: the XML is ill-formed because XML entities are not allowed in these locations.What did you expect to see?
An error indicating that the XML is ill-formed.
The text was updated successfully, but these errors were encountered: