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

Preserve whitespace in lists #1637

Merged
merged 3 commits into from
Aug 8, 2018
Merged

Preserve whitespace in lists #1637

merged 3 commits into from
Aug 8, 2018

Conversation

Rich-Harris
Copy link
Member

I started this PR thinking I was going to finally make some headway on #189, but really I just wanted to fix one thing: when you go to https://svelte.technology, there's an awkward flash when the page hydrates:

li-jump

It turns out that it's very easily fixed — Svelte is erroneously removing whitespace from inside <ol> and <ul> elements, and we just need to remove them from the relevant list. The PR seems much bigger because I also took the opportunity to replace appendNode(node, target) and insertNode(node, target, anchor) with append(target, node) and insert(target, node, anchor). The resulting code is somewhat easier to follow.

@Rich-Harris Rich-Harris merged commit cce6db4 into master Aug 8, 2018
@Rich-Harris Rich-Harris deleted the list-whitespace branch August 8, 2018 12:29
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.

1 participant