-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encoding/xml: accepts XML with no space between attributes #68385
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Comments
DemiMarie
changed the title
import/path: issue title
encoding/xml: accepts XML with no space between attribute value and name of next attribute
Jul 11, 2024
DemiMarie
changed the title
encoding/xml: accepts XML with no space between attribute value and name of next attribute
encoding/xml: accepts XML with no space between attributes
Jul 11, 2024
14 tasks
This was referenced Jul 11, 2024
Open
seankhliao
added
the
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
label
Jul 13, 2024
DemiMarie
added a commit
to DemiMarie/go
that referenced
this issue
Sep 1, 2024
This is needed to reject the ill-formed document <a b='c'c='d/>. Fixes: golang#68385
Change https://go.dev/cl/609378 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Go version
1.22.5 (this is from
pkg.go.dev
)Output of
go env
in your module/workspace:Whatever is on `pkg.go.dev` as of the filing of this issue
What did you do?
https://go.dev/play/p/_xXpPKU-YWQ
What did you see happen?
Unmarshaling the XML succeeds, even though there is a missing space between
b="c"
andc="d"
.What did you expect to see?
Unmarshaling
<a b="c"c="d"/>
fails. libxml2 correctly rejects this.The text was updated successfully, but these errors were encountered: