docs: fix two element_invalid_self_closing_tag warning in example (#15324)

* code is incorrect (warning element_invalid_self_closing_tag)

* close canvas
pull/15304/head
adiGuba 7 months ago committed by GitHub
parent 575900de88
commit 0d5d9ab760
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save