From 5253c8f8ff555b185ea42d6514b2fbbfff0d47f8 Mon Sep 17 00:00:00 2001 From: Dominic Gannaway Date: Mon, 22 Jul 2024 16:32:46 +0100 Subject: [PATCH] fix: typo in snippert nodeType (#12540) --- packages/svelte/src/internal/client/dom/blocks/snippet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);