Skip to content

Commit 11ada98

Browse files
authored
[docs] fix sentences in <svelte:element> (#7484)
1 parent 0a086c8 commit 11ada98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/content/docs/02-template-syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,11 +1635,11 @@ If `this` is falsy, no component is rendered.
16351635

16361636
---
16371637

1638-
The `<svelte:element>` element lets you render an element of a dynamically specified type. This is useful for example when rich text content from a CMS. If the tag is changed, the children will be preserved unless there's a transition attached to the element. Any properties and event listeners present will be applied to the element.
1638+
The `<svelte:element>` element lets you render an element of a dynamically specified type. This is useful for example when displaying rich text content from a CMS. Any properties and event listeners present will be applied to the element.
16391639

16401640
The only supported binding is `bind:this`, since the element type specific bindings that Svelte does at build time (e.g. `bind:value` for input elements) does not work with a dynamic tag type.
16411641

1642-
If `this` has a nullish value, a warning will be logged in development mode.
1642+
If `this` has a nullish value, the element and its children will not be rendered.
16431643

16441644
```sv
16451645
<script>

0 commit comments

Comments
 (0)