mirror of https://github.com/sveltejs/svelte
skip a11y-missing-content check with contenteditable bindings (#5023)
parent
6289dfcdcd
commit
10f7b5ee70
@ -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