-
-
Notifications
You must be signed in to change notification settings - Fork 223
Closed
Labels
FixedFixed in master branch. Pending production release.Fixed in master branch. Pending production release.bugSomething isn't workingSomething isn't working
Description
Describe the bug
The following code from the svelte docs:
<div contenteditable="true" bind:innerHTML={html}></div>generates the following error:
(JSX attribute) innerHTML: string | undefined
Type '{ contenteditable: "true"; innerHTML: string | undefined; }' is not assignable to type 'HTMLProps<HTMLDivElement>'.
Property 'innerHTML' does not exist on type 'HTMLProps<HTMLDivElement>'.ts(2322)
To Reproduce
I'm using code similar to this
<script>
const html = "<p>hello</p>"
</script>
<div contenteditable="true" bind:innerHTML={html}></div>
Expected behavior
The tools recognise the HTML code as valid
System (please complete the following information):
- OS: Linux
- IDE: VSCode
- Plugin/Package:
Metadata
Metadata
Assignees
Labels
FixedFixed in master branch. Pending production release.Fixed in master branch. Pending production release.bugSomething isn't workingSomething isn't working
