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

.serializeArray() bug with incomplete '&#' entity #693

Closed
arnaudsj opened this issue Apr 2, 2015 · 1 comment
Closed

.serializeArray() bug with incomplete '&#' entity #693

arnaudsj opened this issue Apr 2, 2015 · 1 comment

Comments

@arnaudsj
Copy link

arnaudsj commented Apr 2, 2015

Hi,

Just ran into this weird bug:

$('<form method="post"><input name="url" type="hidden" value="http://www.domain.com/?id=770&#anchor"></form>').serializeArray()
[ { name: 'url', value: 'http://www.domain.com/?id=7700&#anchor' } ]

Notice how 770, gets transformed to 7700!

@fb55
Copy link
Member

fb55 commented Apr 6, 2015

Nice catch. That's a parser bug, moved to fb55/htmlparser2#125.

@fb55 fb55 closed this as completed Apr 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants