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

html-conduit: Entity decoding in attributes in 1.3.1 cuts off after & #038; #128

Closed
valpackett opened this issue Jun 24, 2018 · 4 comments
Closed

Comments

@valpackett
Copy link

Test started failing after stackage upgraded to 1.3.1: https://github.com/myfreeweb/microformats2-parser/issues/5

Basically in

<a href="https://example.com?a=b&#038;c=d">link</a>

href gets decoded as https://example.com?a=b which is certainly not what I would expect.

bergmark added a commit to commercialhaskell/stackage that referenced this issue Jun 25, 2018
snoyberg added a commit that referenced this issue Jun 25, 2018
@snoyberg
Copy link
Owner

I was unable to repro with a451a48. Can you provide a reproducing test case against html-conduit?

@snoyberg
Copy link
Owner

Just a guess: is it possible that you had a workaround in place previously to deal with the lack of entity decoding in tagstream-conduit, and introducing this bugfix caused you to double-unescape the entities?

@valpackett
Copy link
Author

Oh. Sorry, yeah, that's it.

@snoyberg
Copy link
Owner

No worries, it was the only workaround for this buggy behavior before.

bergmark added a commit to commercialhaskell/stackage that referenced this issue Jun 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants