diff --git a/packages/svelte/src/internal/client/dom/blocks/snippet.js b/packages/svelte/src/internal/client/dom/blocks/snippet.js index 8a8b6af44a..ea65e5b853 100644 --- a/packages/svelte/src/internal/client/dom/blocks/snippet.js +++ b/packages/svelte/src/internal/client/dom/blocks/snippet.js @@ -91,7 +91,7 @@ export function createRawSnippet(fn) { var html = snippet.render().trim(); var fragment = create_fragment_from_html(html); element = /** @type {Element} */ (fragment.firstChild); - if (DEV && (element.nextSibling !== null || element.nodeType !== 3)) { + if (DEV && (element.nextSibling !== null || element.nodeType !== 1)) { w.invalid_raw_snippet_render(); } anchor.before(element);