Closed
Description
Describe the bug
On hydration, nodes containing {braced expressions} have their children rendered out of order.
Note that it’s reproducible with 3.38.1.
To Reproduce
The quickest way, probably: https://github.com/intrikate/svelte-hydration-order-issue.
Otherwise, putting an expression and a span
under a common parent seems to reliably trigger this behaviour. Something like <p>{1} 2 <span>3</span></p>
will hydrate into ‘13 2 ’.
Expected behavior
The order of nodes should be preserved in hydration.
Information about your Svelte project:
envinfo
System: OS: macOS 11.2.3 CPU: (4) x64 Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz Memory: 64.55 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.16.0 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 6.14.11 - /usr/local/bin/npm Browsers: Chrome: 90.0.4430.93 Firefox Developer Edition: 89.0 Safari: 14.0.3 npmPackages: svelte: ^3.38.1 => 3.38.1Severity
High.
Additional context
Like #6274, this behaviour is not present in 3.37.0, but, sadly, remains in 3.38.1.