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

Fixs #93 #103

Merged
merged 3 commits into from
Jun 8, 2020
Merged

Fixs #93 #103

merged 3 commits into from
Jun 8, 2020

Conversation

life777
Copy link
Contributor

@life777 life777 commented Jun 7, 2020

Fixes #93

Fix is simple, if we current node requires preserving formatting inside it (like "textarea" or "pre" tags) we have to clear all pending text nodes before we start working with this tag. If we don't do it before, pendingTagNonCollapsibleWithSpaces variable will be not 0 and pending text nodes won't be cleared in TrimNodeOnEnd -> TrimPendingTextNodes.

Thanks

@trullock trullock merged commit 73df3df into trullock:master Jun 8, 2020
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.

New line and spaces preserved before textarea elements
2 participants