From b0d3fafde58fa4e9bd0901c67ae9c8102206189e Mon Sep 17 00:00:00 2001 From: stephane-vanraes Date: Sat, 24 Apr 2021 22:10:32 +0200 Subject: [PATCH] Clarify that special elements have to be top level --- site/content/docs/02-template-syntax.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index 85b6ef553e..e149dc1471 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -1475,6 +1475,8 @@ If `this` is falsy, no component is rendered. The `` element allows you to add event listeners to the `window` object without worrying about removing them when the component is destroyed, or checking for the existence of `window` when server-side rendering. +Contrary to `` this element can only be a the top level of your component and must never be inside a block or element. + ```sv