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

[tokenizer] fix case where < followed by whitespace doesn't parse #58

Merged
merged 1 commit into from
Jul 20, 2013

Conversation

xcoderzach
Copy link

if you parse the string 'a < b' everything after the < is lost (result: 'a '). Whereas other parsers, (chrome and firefox) the result is 'a &lt; b'

Causing this bug on jsdom: jsdom/jsdom#652

fb55 added a commit that referenced this pull request Jul 20, 2013
[tokenizer] fix case where `<` followed by whitespace doesn't parse
@fb55 fb55 merged commit d3c1fcd into fb55:master Jul 20, 2013
@fb55
Copy link
Owner

fb55 commented Jul 20, 2013

Thanks!

@domenic
Copy link

domenic commented Jul 21, 2013

@fb55 Can you release a new version with this fix?

@fb55
Copy link
Owner

fb55 commented Jul 21, 2013

Published as 3.1.5.

fb55 added a commit that referenced this pull request Jul 21, 2013
@ForbesLindesay
Copy link
Collaborator

Online demo also updated 😄 http://htmlparser.forbeslindesay.co.uk/

@fb55
Copy link
Owner

fb55 commented Jul 21, 2013

@ForbesLindesay Couldn't that be automated by using jesusabdullah/browserify-cdn / http://wzrd.in.nyud.net/?

@ForbesLindesay
Copy link
Collaborator

It could be, but that adds mmore moving parts. This way it generates one single minified browserify bundle, which is nice and efficient.

I also display the version number that's been loaded on the page, which may be tricky to do via the browserify-cdn as things currently stand.

Also, deploying is just a case of updaing the "htmlparser2" version in package.json, testing if I feel like it, and typing npm run release. Given how quick it already is, I'm not sure it's worth automating any further.

fb55 added a commit that referenced this pull request Oct 21, 2018
[tokenizer] fix case where `<` followed by whitespace doesn't parse
fb55 added a commit that referenced this pull request Oct 21, 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

Successfully merging this pull request may close these issues.

4 participants