mirror of https://github.com/sveltejs/svelte
parent
c9ccd6e20f
commit
38305ac7ca
@ -0,0 +1,10 @@
|
||||
<!-- valid -->
|
||||
<button on:click={() => {}} />
|
||||
<div on:keydown={() => {}} role="button" />
|
||||
<input type="text" on:click={() => {}} />
|
||||
<div on:copy={() => {}} />
|
||||
<a href="/foo" on:click={() => {}}>link</a>
|
||||
<!-- invalid -->
|
||||
<div on:keydown={() => {}} />
|
||||
<!-- svelte-ignore a11y-missing-attribute -->
|
||||
<a on:mousedown={() => {}} on:mouseup={() => {}} on:copy={() => {}}>link</a>
|
||||
@ -0,0 +1,32 @@
|
||||
[
|
||||
{
|
||||
"code": "a11y-no-static-element-interactions",
|
||||
"end": {
|
||||
"character": 249,
|
||||
"column": 29,
|
||||
"line": 8
|
||||
},
|
||||
"message": "A11y: <div> with keydown handler must have an ARIA role",
|
||||
"pos": 220,
|
||||
"start": {
|
||||
"character": 220,
|
||||
"column": 0,
|
||||
"line": 8
|
||||
}
|
||||
},
|
||||
{
|
||||
"code": "a11y-no-static-element-interactions",
|
||||
"end": {
|
||||
"character": 372,
|
||||
"column": 76,
|
||||
"line": 10
|
||||
},
|
||||
"message": "A11y: <a> with mousedown, mouseup handlers must have an ARIA role",
|
||||
"pos": 296,
|
||||
"start": {
|
||||
"character": 296,
|
||||
"column": 0,
|
||||
"line": 10
|
||||
}
|
||||
}
|
||||
]
|
||||
Loading…
Reference in new issue