Skip to content
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

affected/package: xml/encoding #57802

Closed
larhun opened this issue Jan 15, 2023 · 1 comment
Closed

affected/package: xml/encoding #57802

larhun opened this issue Jan 15, 2023 · 1 comment

Comments

@larhun
Copy link

larhun commented Jan 15, 2023

What version of Go are you using (go version)?

1.19.5

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

windows/amd64

What did you do?

After running the snippet "https://go.dev/play/p/r7BVXxvAygX" on the input data

<a xmlns="x"><b>y</b></a>

I get the output data generated by using the Encoder.EncodeToken

<a xmlns="x" xmlns="x"><b>y</b></a>

that is non-well-formed XML with a duplicated attribute name xmlns.

What did you expect to see?

<a xmlns="x"><b>y</b></a>

What did you see instead?

<a xmlns="x" xmlns="x"><b>y</b></a>

Please fix.

@seankhliao
Copy link
Member

Duplicate of #42807

@seankhliao seankhliao marked this as a duplicate of #42807 Jan 16, 2023
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Jan 16, 2023
@golang golang locked and limited conversation to collaborators Jan 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants