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: Decoder.DefaultSpace should set space for attributes too #9185

Closed
rogpeppe opened this Issue Dec 1, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@rogpeppe
Copy link
Contributor

rogpeppe commented Dec 1, 2014

The docs say:

    // DefaultSpace sets the default name space used for unadorned tags,
    // as if the entire XML stream were wrapped in an element containing
    // the attribute xmlns="DefaultSpace".

This is not strictly true. If the entire XML stream were wrapped in an element
containing that attribute, attributes would have that namespace by default too. But they
do not.

http://play.golang.org/p/DG4HU40Pkm
@rogpeppe

This comment has been minimized.

Copy link
Contributor Author

rogpeppe commented Dec 1, 2014

Comment 1:

It has been pointed out to me that this is invalid, given the default attribute
namespacing defined in XML.

Status changed to Invalid.

@rogpeppe rogpeppe added the invalid label Dec 1, 2014

@golang golang locked and limited conversation to collaborators Jun 25, 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.