diff --git a/documentation/docs/03-template-syntax/01-basic-markup.md b/documentation/docs/03-template-syntax/01-basic-markup.md index feecfe033e..167ed312b9 100644 --- a/documentation/docs/03-template-syntax/01-basic-markup.md +++ b/documentation/docs/03-template-syntax/01-basic-markup.md @@ -18,6 +18,19 @@ A lowercase tag, like `
`, denotes a regular HTML element. A capitalised tag
``` +Svelte safely omits dynamic tags if the resolved property is `null` or `undefined`, but it expects the object path to be valid object. + +```svelte + + + + +``` + + ## Element attributes By default, attributes work exactly like their HTML counterparts. @@ -180,12 +193,21 @@ The expression will be stringified and escaped to prevent code injections. If yo ## Comments -You can use HTML comments inside components. +You can use HTML comments inside components and inside tags. ```svelte

Hello world

``` +```svelte +
+ foo bar +
+``` + Comments beginning with `svelte-ignore` disable warnings for the next block of markup. Usually, these are accessibility warnings; make sure that you're disabling them for a good reason. ```svelte