You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Empty text nodes are explicitly discarded. However, that is clearly wrong in some cases. Perhaps we should only collapse whitespace, but not discard it?
Before parsing:
<p><span>Hello,</span><span>world!</span></p>
After parsing:
<p><span>Hello,</span><span>world!</span></p>
#9 provides an opt-in solution, but perhaps this should not be opt-in?
The text was updated successfully, but these errors were encountered:
This should be resolved by #9 and this commit: 99d99ec. The default now is for us to collapse whitespace, not ignore it. Since this was a potentially breaking change, I've updated the major version number to 2.
Empty text nodes are explicitly discarded. However, that is clearly wrong in some cases. Perhaps we should only collapse whitespace, but not discard it?
#9 provides an opt-in solution, but perhaps this should not be opt-in?
The text was updated successfully, but these errors were encountered: