Skip to content

Commit 801327f

Browse files
Update link-req-content description
1 parent 3e0bc5b commit 801327f

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

rules/link-req-content/README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,24 @@
1111

1212
Проблемными считаются следующие шаблоны:
1313
```html
14-
<a><img src="cat.gif"></a>
14+
<a>
15+
<img src="images/cat.gif" width="100" height="1000">
16+
</a>
17+
18+
<a href="#">
19+
<svg>...</svg>
20+
</a>
1521
```
1622

1723
Следующие шаблоны **не** считаются проблемами:
1824
```html
19-
<a>lorem ipsum</a>
20-
<a><img src="cat.gif" alt="cat page"></a>
21-
<a aria-label="lorem ipsum"></a>
25+
<a href="#">
26+
lorem ipsum
27+
</a>
28+
29+
<a href="#">
30+
<img src="images/cat.gif" width="100" height="100" alt="cat page">
31+
</a>
32+
33+
<a href="#" aria-label="lorem ipsum"></a>
2234
```

0 commit comments

Comments
 (0)