diff --git a/packages/svelte/messages/compile-errors/template.md b/packages/svelte/messages/compile-errors/template.md index 9b43e99820ec..4e24714647cd 100644 --- a/packages/svelte/messages/compile-errors/template.md +++ b/packages/svelte/messages/compile-errors/template.md @@ -190,7 +190,13 @@ ## node_invalid_placement -> %thing% is invalid inside <%parent%> +> %thing% is invalid inside `<%parent%>` + +HTML restricts where certain elements can appear. In case of a violation the browser will 'repair' the HTML in a way that breaks Svelte's assumptions about the structure of your components. Some examples: + +- `
hello
hello
` because `
` cannot contain block-level elements) +- `` will result in `` (the `
| cell |
| cell |
hello
hello
` because `
` cannot contain block-level elements) +- `` will result in `` (the `
| cell |
| cell |