mirror of https://github.com/sveltejs/svelte
a11y: implement img-redundant-alt (#4750)
parent
09115b5256
commit
153b128fe2
@ -0,0 +1,7 @@
|
||||
<img src="foo" alt="Foo eating a sandwich." />
|
||||
<img src="bar" aria-hidden alt="Picture of me taking a photo of an image" />
|
||||
<img src="foo" alt="Photo of foo being weird." />
|
||||
<img src="bar" alt="Image of me at a bar!" />
|
||||
<img src="foo" alt="Picture of baz fixing a bug." />
|
||||
<img src="bar" alt="Plant doing photosynthesis in the afternoon" />
|
||||
<img src="foo" alt="Picturesque food" />
|
@ -0,0 +1,47 @@
|
||||
[
|
||||
{
|
||||
"code": "a11y-img-redundant-alt",
|
||||
"message": "A11y: Screenreaders already announce <img> elements as an image.",
|
||||
"end": {
|
||||
"character": 173,
|
||||
"column": 49,
|
||||
"line": 3
|
||||
},
|
||||
"start": {
|
||||
"character": 124,
|
||||
"column": 0,
|
||||
"line": 3
|
||||
},
|
||||
"pos": 124
|
||||
},
|
||||
{
|
||||
"code": "a11y-img-redundant-alt",
|
||||
"message": "A11y: Screenreaders already announce <img> elements as an image.",
|
||||
"end": {
|
||||
"character": 219,
|
||||
"column": 45,
|
||||
"line": 4
|
||||
},
|
||||
"start": {
|
||||
"character": 174,
|
||||
"column": 0,
|
||||
"line": 4
|
||||
},
|
||||
"pos": 174
|
||||
},
|
||||
{
|
||||
"code": "a11y-img-redundant-alt",
|
||||
"message": "A11y: Screenreaders already announce <img> elements as an image.",
|
||||
"end": {
|
||||
"character": 272,
|
||||
"column": 52,
|
||||
"line": 5
|
||||
},
|
||||
"start": {
|
||||
"character": 220,
|
||||
"column": 0,
|
||||
"line": 5
|
||||
},
|
||||
"pos": 220
|
||||
}
|
||||
]
|
Loading…
Reference in new issue