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

encoding/xml: Default namespaces are missing #5040

Closed
gopherbot opened this issue Mar 13, 2013 · 4 comments
Closed

encoding/xml: Default namespaces are missing #5040

gopherbot opened this issue Mar 13, 2013 · 4 comments

Comments

@gopherbot
Copy link

by chris.jones.yar:

http://play.golang.org/p/oyQAscuSEt

go version devel +f3ca7d5b1b0b Tue Mar 12 17:12:56 2013 -0700 windows/386

Expected output:
<Message xml:lang="en"><Msg>Hello</Msg></Message>

Actual output:
<Message xmlns:_1="http://www.w3.org/XML/1998/namespace";
_1:lang="en"><Msg>Hello</Msg></Message>

http://www.w3.org/TR/REC-xml-names/, near the end of section 3, "Namespace
constraint: Reserved Prefixes and Namespace Names."

"Other prefixes MUST NOT be bound to this namespace name"
@adg
Copy link
Contributor

adg commented Mar 13, 2013

Comment 1:

Is this a regression or a long-standing issue?

Status changed to WaitingForReply.

@gopherbot
Copy link
Author

Comment 2 by chris.jones.yar:

It's a long-standing issue that should have been addressed by
https://golang.org/cl/7227056/ which fixed
https://golang.org/issue/3526 .

@rsc
Copy link
Contributor

rsc commented Mar 13, 2013

Comment 3:

https://golang.org/cl/7777047

@rsc
Copy link
Contributor

rsc commented Mar 13, 2013

Comment 4:

This issue was closed by revision bdf8bf6.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
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