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

Correct rendering of root node #1307

Merged
merged 1 commit into from
May 18, 2019
Merged

Conversation

jugglinmike
Copy link
Member

This change normalizes rendering between trees generated by parse5 and
htmlparser2. Consistent rendering of the "root" node is especially
important given that cheerio.render($.root()) will be the recommended
pattern for rendering entire documents in Cheerio version 1.0.

This change normalizes rendering between trees generated by parse5 and
htmlparser2. Consistent rendering of the "root" node is especially
important given that `cheerio.render($.root())` will be the recommended
pattern for rendering entire documents in Cheerio version 1.0.
Copy link
Member

@fb55 fb55 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great fix! Thanks for looking into this.

@jugglinmike
Copy link
Member Author

Sure thing

@jugglinmike jugglinmike merged commit 8e9a019 into cheeriojs:v1.0.0 May 18, 2019
fb55 pushed a commit that referenced this pull request Sep 10, 2020
This change normalizes rendering between trees generated by parse5 and
htmlparser2. Consistent rendering of the "root" node is especially
important given that `cheerio.render($.root())` will be the recommended
pattern for rendering entire documents in Cheerio version 1.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants