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: can decode but not encode a DOCTYPE with an internal subset #10158

Closed
mhilton opened this issue Mar 13, 2015 · 1 comment
Closed
Milestone

Comments

@mhilton
Copy link

mhilton commented Mar 13, 2015

  1. What version of Go are you using (go version)?
    go version go1.2.1 linux/amd64
  2. What operating system and processor architecture are you using?
    linux amd64
  3. What did you do?
    http://play.golang.org/p/ejQsFQ7BHN
  4. What did you expect to see?
    EOF
  5. What did you see instead?
    xml: EncodeToken of Directive containing > marker

It looks like the test in Encoder.EncodeToken is a little too strict. In general it would be good if the encoder could encode a stream of tokens received from the decoder.

@minux minux changed the title encoding/xml can decode but not encode a DOCTYPE with an internal subset encoding/xml: can decode but not encode a DOCTYPE with an internal subset Mar 13, 2015
@rsc rsc added this to the Go1.5 milestone Apr 10, 2015
@rsc rsc removed the repo-main label Apr 14, 2015
@gopherbot
Copy link

CL https://golang.org/cl/11630 mentions this issue.

@rsc rsc closed this as completed in 8b6527b Jul 15, 2015
@golang golang locked and limited conversation to collaborators Jul 18, 2016
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

4 participants