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

Comments

Projects
None yet
3 participants
@gopherbot
Copy link

gopherbot commented Mar 13, 2013

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

This comment has been minimized.

Copy link
Contributor

adg commented Mar 13, 2013

Comment 1:

Is this a regression or a long-standing issue?

Status changed to WaitingForReply.

@gopherbot

This comment has been minimized.

Copy link
Author

gopherbot commented Mar 13, 2013

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

This comment has been minimized.

Copy link
Contributor

rsc commented Mar 13, 2013

@rsc

This comment has been minimized.

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.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.