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

Non-breaking spaces are stripped from otherwise-empty elements #348

Closed
TehShrike opened this issue Mar 6, 2017 · 2 comments · Fixed by #352
Closed

Non-breaking spaces are stripped from otherwise-empty elements #348

TehShrike opened this issue Mar 6, 2017 · 2 comments · Fixed by #352
Labels

Comments

@TehShrike
Copy link
Member

Given this template:

<div>
	what<span>&nbsp;</span>the
</div>

the non-breaking space is lost when rendering, either to the DOM or with the SSR.

Reproduction with the REPL

@Rich-Harris Rich-Harris added the bug label Mar 6, 2017
Rich-Harris added a commit that referenced this issue Mar 7, 2017
differentiate between nbsp and other whitespace
@Rich-Harris
Copy link
Member

Thanks — fixed in 1.10.3

taylorzane pushed a commit to taylorzane/svelte that referenced this issue Mar 7, 2017
@ItalyPaleAle
Copy link
Contributor

I'm having the same issue again on 3.3.2. A node with just &nbsp; becomes empty (converted to normal whitespaces)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants