Skip to content

Commit

Permalink
[docs] fix sentences in <svelte:element> (#7484)
Browse files Browse the repository at this point in the history
  • Loading branch information
baseballyama committed Apr 25, 2022
1 parent 0a086c8 commit 11ada98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/content/docs/02-template-syntax.md
Expand Up @@ -1635,11 +1635,11 @@ If `this` is falsy, no component is rendered.

---

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.
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.

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.

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

```sv
<script>
Expand Down

0 comments on commit 11ada98

Please sign in to comment.