Skip to content

Whitespace is ignored #10

Description

@denis-sokolov

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions