File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/svelte/src/internal/client/dom Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
import { hydrate_nodes , hydrating } from './hydration.js' ;
2
2
import { clone_node , empty } from './operations.js' ;
3
- import { create_fragment_from_html , insert } from './reconciler.js' ;
3
+ import { create_fragment_from_html } from './reconciler.js' ;
4
4
import { current_effect } from '../runtime.js' ;
5
5
import { TEMPLATE_FRAGMENT , TEMPLATE_USE_IMPORT_NODE } from '../../../constants.js' ;
6
6
@@ -171,8 +171,7 @@ export function append(anchor, dom) {
171
171
current = /** @type {import('#client').Dom } */ ( [ ...node . childNodes ] ) ;
172
172
}
173
173
174
- // TODO ideally we'd do `anchor.before(dom)`, but that fails because `dom` can be an array of nodes in the SVG case
175
- insert ( current , anchor ) ;
174
+ anchor . before ( node ) ;
176
175
}
177
176
178
177
/** @type {import('#client').Effect } */ ( current_effect ) . dom = current ;
You can’t perform that action at this time.
0 commit comments