File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/svelte/tests/runtime-runes/samples/invalid-html-ssr Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,8 @@ export default test({
32
32
if ( variant === 'hydrate' ) {
33
33
assert . equal (
34
34
log [ 0 ] ,
35
- `Svelte SSR validation error:\n\n<h1> (Component.svelte) is not a valid child element of <p> (main.svelte)\n\n` +
36
- 'Ensure your components render valid HTML as the browser will try to repair invalid HTML, ' +
37
- 'which may result in content being shifted around and will likely result in a hydration mismatch.'
35
+ '`<h1>` (.../samples/invalid-html-ssr/Component.svelte:1:0) cannot contain `<p>` (.../samples/invalid-html-ssr/main.svelte:5:0)\n\n' +
36
+ 'This can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.'
38
37
) ;
39
38
}
40
39
}
You can’t perform that action at this time.
0 commit comments