From 761fb1e3256b8d409b6c11493b600ddcf4d8308c Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 28 Oct 2025 04:56:14 +0100 Subject: [PATCH] Revert "fix" This reverts commit 2e56cd75753abc1fdfabbada9d27829d9eaa496a. --- .../svelte/src/internal/client/dom/blocks/html.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/packages/svelte/src/internal/client/dom/blocks/html.js b/packages/svelte/src/internal/client/dom/blocks/html.js index aa06a0a428..d7190abc66 100644 --- a/packages/svelte/src/internal/client/dom/blocks/html.js +++ b/packages/svelte/src/internal/client/dom/blocks/html.js @@ -8,7 +8,7 @@ import * as w from '../../warnings.js'; import { hash, sanitize_location } from '../../../../utils.js'; import { DEV } from 'esm-env'; import { dev_current_component_function } from '../../context.js'; -import { create_text, get_first_child, get_next_sibling } from '../operations.js'; +import { get_first_child, get_next_sibling } from '../operations.js'; import { active_effect } from '../../runtime.js'; import { COMMENT_NODE } from '#client/constants'; @@ -86,14 +86,7 @@ export function html(node, get_value, svg = false, mathml = false, skip_warning } assign_nodes(hydrate_node, last); - - // in some cases the anchor could be in a fragment, and will be off-screen - // when we re-render. TODO figure out how this happens (appears to be - // forking-related) and come up with a regression test - anchor = create_text(); - next.before(anchor); - - set_hydrate_node(next); + anchor = set_hydrate_node(next); return; }