Skip to content

Commit

Permalink
fix: typo in snippert nodeType (#12540)
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm authored Jul 22, 2024
1 parent 518d985 commit 5253c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte/src/internal/client/dom/blocks/snippet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5253c8f

Please sign in to comment.