Skip to content

Commit 355730c

Browse files
authored
chore: add missing test for #13158 (#13255)
1 parent 6ed45db commit 355730c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/svelte/tests/runtime-runes/samples/invalid-html-ssr/_config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ export default test({
55
dev: true
66
},
77

8-
html: `<p></p><h1>foo</h1><p></p><form></form>`,
8+
html: `<p></p><h1>foo</h1><p></p><form></form> hello`,
99

1010
recover: true,
1111

1212
mode: ['hydrate'],
1313

1414
errors: [
1515
'node_invalid_placement_ssr: `<p>` (main.svelte:6:0) cannot contain `<h1>` (h1.svelte:1:0)\n\nThis can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.',
16-
'node_invalid_placement_ssr: `<form>` (main.svelte:9:0) cannot contain `<form>` (form.svelte:1:0)\n\nThis can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.'
16+
'node_invalid_placement_ssr: `<form>` (main.svelte:9:0) cannot contain `<form>` (form.svelte:1:0)\n\nThis can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.',
17+
'node_invalid_placement_ssr: `<td>` (main.svelte:12:0) needs a valid parent element\n\nThis can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.'
1718
],
1819

1920
warnings: [

packages/svelte/tests/runtime-runes/samples/invalid-html-ssr/main.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
<form>
1010
<Form />
1111
</form>
12+
<td>hello</td>

0 commit comments

Comments
 (0)