mirror of https://github.com/sveltejs/svelte
parent
c9ccd6e20f
commit
38305ac7ca
@ -1,50 +1,50 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"code": "a11y-mouse-events-have-key-events",
|
"code": "a11y-mouse-events-have-key-events",
|
||||||
"end": {
|
"end": {
|
||||||
"column": 35,
|
"column": 35,
|
||||||
"line": 10
|
"line": 10
|
||||||
},
|
},
|
||||||
"message": "A11y: on:mouseover must be accompanied by on:focus",
|
"message": "A11y: on:mouseover must be accompanied by on:focus",
|
||||||
"start": {
|
"start": {
|
||||||
"column": 0,
|
"column": 0,
|
||||||
"line": 10
|
"line": 10
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"code": "a11y-mouse-events-have-key-events",
|
"code": "a11y-mouse-events-have-key-events",
|
||||||
"end": {
|
"end": {
|
||||||
"column": 51,
|
"column": 51,
|
||||||
"line": 12
|
"line": 12
|
||||||
},
|
},
|
||||||
"message": "A11y: on:mouseover must be accompanied by on:focus",
|
"message": "A11y: on:mouseover must be accompanied by on:focus",
|
||||||
"start": {
|
"start": {
|
||||||
"column": 0,
|
"column": 0,
|
||||||
"line": 12
|
"line": 12
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"code": "a11y-mouse-events-have-key-events",
|
"code": "a11y-mouse-events-have-key-events",
|
||||||
"end": {
|
"end": {
|
||||||
"column": 34,
|
"column": 34,
|
||||||
"line": 13
|
"line": 13
|
||||||
},
|
},
|
||||||
"message": "A11y: on:mouseout must be accompanied by on:blur",
|
"message": "A11y: on:mouseout must be accompanied by on:blur",
|
||||||
"start": {
|
"start": {
|
||||||
"column": 0,
|
"column": 0,
|
||||||
"line": 13
|
"line": 13
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"code": "a11y-mouse-events-have-key-events",
|
"code": "a11y-mouse-events-have-key-events",
|
||||||
"end": {
|
"end": {
|
||||||
"column": 50,
|
"column": 50,
|
||||||
"line": 15
|
"line": 15
|
||||||
},
|
},
|
||||||
"message": "A11y: on:mouseout must be accompanied by on:blur",
|
"message": "A11y: on:mouseout must be accompanied by on:blur",
|
||||||
"start": {
|
"start": {
|
||||||
"column": 0,
|
"column": 0,
|
||||||
"line": 15
|
"line": 15
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -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