From 535a1fc20d998db7d2bfdd1893cefe27f3bf479b Mon Sep 17 00:00:00 2001 From: TzuHsuan Date: Fri, 8 Apr 2022 12:22:01 +1000 Subject: [PATCH] Change top level requirement wording (#7336) Changed the wording to be more consistent between ``, `` and ``. Chose "may only appear" over "has to appear" as the latter could be misinterpreted as a compulsory element --- site/content/docs/02-template-syntax.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index f80ddfee05..e42ef23b71 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -1683,7 +1683,7 @@ All except `scrollX` and `scrollY` are readonly. Similarly to ``, this element allows you to add listeners to events on `document.body`, such as `mouseenter` and `mouseleave`, which don't fire on `window`. It also lets you use [actions](/docs#template-syntax-element-directives-use-action) on the `` element. -`` also has to appear at the top level of your component. +As with ``, this element may only appear the top level of your component and must never be inside a block or element. ```sv `, this element allows you to add listeners to even This element makes it possible to insert elements into `document.head`. During server-side rendering, `head` content is exposed separately to the main `html` content. -As with `` and ``, this element has to appear at the top level of your component and cannot be inside a block or other element. +As with `` and ``, this element may only appear at the top level of your component and must never be inside a block or element. ```sv