mirror of https://github.com/sveltejs/svelte
parent
bdc815462c
commit
3d6baf5dd5
@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"code": "missing-contenteditable-attribute",
|
||||
"message": "'contenteditable' attribute is required for textContent and innerHTML two-way bindings",
|
||||
"start": {
|
||||
"line": 6,
|
||||
"column": 3,
|
||||
"character": 157
|
||||
},
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 24,
|
||||
"character": 178
|
||||
},
|
||||
"pos": 157
|
||||
}
|
||||
]
|
@ -0,0 +1,6 @@
|
||||
<script>
|
||||
let text = 'Hello world';
|
||||
</script>
|
||||
<p bind:textContent={text} contenteditable="true"></p>
|
||||
<p bind:innerHTML={text} contenteditable="true"></p>
|
||||
<p bind:innerHTML={text}></p>
|
Loading…
Reference in new issue