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

Fix sorting of mixed content #12

Closed
wants to merge 4 commits into from
Closed

Fix sorting of mixed content #12

wants to merge 4 commits into from

Conversation

DanielRose
Copy link

Fixes #11.

Builds on top of the fixes of @zanaptak

zanaptak and others added 4 commits July 30, 2020 20:23
…something

For many node types (ex. mixed Text and Element), sorting those nodes breaks the content.
Only sort when the children are all Element (or Comment, which might end up in the wrong place, but it shouldn't prevent sorting).
@DanielRose DanielRose closed this by deleting the head repository Aug 19, 2022
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.

Sorting nodes with mixed content can break the content
2 participants