fix: typo in snippert nodeType (#12540)

pull/12544/head
Dominic Gannaway 4 months ago committed by GitHub
parent 518d9854f5
commit 5253c8f8ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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);

Loading…
Cancel
Save