fix(5020): add tests to validate error isn't thrown when contenteditable is added

pull/5023/head
Bassam Ismail 5 years ago
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…
Cancel
Save