Skip to content

Commit

Permalink
docs: fix two element_invalid_self_closing_tag warning in example (#1…
Browse files Browse the repository at this point in the history
…5324)

* code is incorrect (warning element_invalid_self_closing_tag)

* close canvas
  • Loading branch information
adiguba authored Feb 17, 2025
1 parent 575900d commit 0d5d9ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/docs/03-template-syntax/11-bind.md
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ Elements with the `contenteditable` attribute support the following bindings:
<!-- for some reason puts the comment and html on same line -->
<!-- prettier-ignore -->
```svelte
<div contenteditable="true" bind:innerHTML={html} />
<div contenteditable="true" bind:innerHTML={html}></div>
```

## Dimensions
Expand Down Expand Up @@ -307,7 +307,7 @@ To get a reference to a DOM node, use `bind:this`. The value will be `undefined`
});
</script>
<canvas bind:this={canvas} />
<canvas bind:this={canvas}></canvas>
```

Components also support `bind:this`, allowing you to interact with component instances programmatically.
Expand Down

0 comments on commit 0d5d9ab

Please sign in to comment.