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

strip empty text nodes #68

Merged
merged 2 commits into from
May 2, 2017
Merged

strip empty text nodes #68

merged 2 commits into from
May 2, 2017

Conversation

yoshuawuyts
Copy link
Member

Strips empty text nodes, so the resulting DOM is a whole bunch cleaner. Thanks!

Tests were acounting for random text nodes, this fixes the tests
@yoshuawuyts yoshuawuyts merged commit 253d352 into master May 2, 2017
@yoshuawuyts yoshuawuyts deleted the strip-empty-text-nodes branch May 2, 2017 19:12
@yoshuawuyts
Copy link
Member Author

20:51 <yoshuawuyts> toddself: \o/
20:56 <yoshuawuyts> toddself: think it's a patch release?
20:56 <yoshuawuyts> yeah right
21:03 <toddself> yeah

@yoshuawuyts
Copy link
Member Author

v4.6.1 🎉

@mantoni
Copy link
Contributor

mantoni commented May 10, 2017

This screws up my layouts for the same reason as stated in shama/yo-yoify#45 (comment)

Consider this:

<em>Yes</em>
<span>yo</span>

This should render as "Yes yo". With this change it becomes "Yesyo".

You can replace multiple whitespace characters with a single blank though. That'd be fine.

goto-bus-stop added a commit to goto-bus-stop/shama-bel that referenced this pull request May 13, 2017
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.

None yet

2 participants