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

Incorrect whitespace handling on docs site #1236

Closed
Rich-Harris opened this issue Mar 14, 2018 · 1 comment
Closed

Incorrect whitespace handling on docs site #1236

Rich-Harris opened this issue Mar 14, 2018 · 1 comment
Labels

Comments

@Rich-Harris
Copy link
Member

Spot the difference:

screen shot 2018-03-14 at 7 04 21 am

screen shot 2018-03-14 at 7 04 33 am

The first is the server rendered HTML — document.querySelector('ul').childNodes.length === 13. The second is after JS kicks in — document.querySelector('ul').childNodes.length === 6.

To be strictly correct, Svelte should insert whitespace between the <li> elements. It would also be acceptable if whitespace was consistently removed, perhaps with an option.

See also #189.

@Rich-Harris
Copy link
Member Author

long since fixed

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

No branches or pull requests

1 participant