We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c5e8d6 commit f647f30Copy full SHA for f647f30
packages/svelte/tests/runtime-runes/samples/invalid-html-ssr/_config.js
@@ -32,9 +32,8 @@ export default test({
32
if (variant === 'hydrate') {
33
assert.equal(
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.'
+ '`<h1>` (.../samples/invalid-html-ssr/Component.svelte:1:0) cannot contain `<p>` (.../samples/invalid-html-ssr/main.svelte:5:0)\n\n' +
+ 'This can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.'
38
);
39
}
40
0 commit comments