Skip to content

Commit

Permalink
fix(5020): add tests to validate error isn't thrown when contentedita…
Browse files Browse the repository at this point in the history
…ble is added
  • Loading branch information
skippednote committed Jun 23, 2020
1 parent bdc8154 commit 3d6baf5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
}
]
Original file line number Diff line number Diff line change
@@ -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>

0 comments on commit 3d6baf5

Please sign in to comment.