File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/svelte/src/internal/client/dom Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -163,10 +163,12 @@ export function append(anchor, dom) {
163
163
var current = dom ;
164
164
165
165
if ( ! hydrating ) {
166
- if ( /** @type {Node } */ ( dom ) . nodeType === 11 ) {
166
+ var node = /** @type {Node } */ ( dom ) ;
167
+
168
+ if ( node . nodeType === 11 ) {
167
169
// if hydrating, `dom` is already an array of nodes, but if not then
168
170
// we need to create an array to store it on the current effect
169
- current = /** @type {import('#client').Dom } */ ( [ .../** @type { Node } */ ( dom ) . childNodes ] ) ;
171
+ current = /** @type {import('#client').Dom } */ ( [ ...node . childNodes ] ) ;
170
172
}
171
173
172
174
// TODO ideally we'd do `anchor.before(dom)`, but that fails because `dom` can be an array of nodes in the SVG case
You can’t perform that action at this time.
0 commit comments