aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMauro Bieg <mb21@users.noreply.github.com>2019-05-28 18:31:41 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2019-05-28 12:31:41 -0400
commit3f57f49033d78fab158af77983611ffcb5cac4bc (patch)
treea97af38267738c5975b2aabcff0d0807c2e45323 /test
parent0e2d6561bef9b0558b0bd96fa06e748a51219d88 (diff)
downloadpandoc-3f57f49033d78fab158af77983611ffcb5cac4bc.tar.gz
HTML writer: emit empty alt tag in figures (#5518)
The same text is already in the <figcaption> and screen-readers would read it twice, see #4737
Diffstat (limited to 'test')
-rw-r--r--test/command/3577.md6
-rw-r--r--test/command/4677.md2
-rw-r--r--test/command/5121.md2
-rw-r--r--test/writer.html42
-rw-r--r--test/writer.html52
5 files changed, 7 insertions, 7 deletions
diff --git a/test/command/3577.md b/test/command/3577.md
index dc88937e9..d1df1610d 100644
--- a/test/command/3577.md
+++ b/test/command/3577.md
@@ -16,10 +16,10 @@
\end{figure}
^D
<figure>
-<img src="img1.jpg" alt="Caption 1" /><figcaption>Caption 1</figcaption>
+<img src="img1.jpg" alt="" /><figcaption>Caption 1</figcaption>
</figure>
<figure>
-<img src="img2.jpg" alt="Caption 2" /><figcaption>Caption 2</figcaption>
+<img src="img2.jpg" alt="" /><figcaption>Caption 2</figcaption>
</figure>
```
```
@@ -30,6 +30,6 @@
\end{figure}
^D
<figure>
-<img src="img1.jpg" alt="Caption 3" /><figcaption>Caption 3</figcaption>
+<img src="img1.jpg" alt="" /><figcaption>Caption 3</figcaption>
</figure>
```
diff --git a/test/command/4677.md b/test/command/4677.md
index 0343cf42a..11a62fd08 100644
--- a/test/command/4677.md
+++ b/test/command/4677.md
@@ -3,6 +3,6 @@
![Caption](img.png){#img:1}
^D
<figure>
-<img src="img.png" alt="Caption" id="img:1" /><figcaption>Caption</figcaption>
+<img src="img.png" alt="" id="img:1" /><figcaption>Caption</figcaption>
</figure>
```
diff --git a/test/command/5121.md b/test/command/5121.md
index 9003cdfec..0f45c4afe 100644
--- a/test/command/5121.md
+++ b/test/command/5121.md
@@ -5,7 +5,7 @@
## Header 2
^D
<figure>
-<img src="./my-figure.jpg" alt="My caption" width="500" /><figcaption>My caption</figcaption>
+<img src="./my-figure.jpg" alt="" width="500" /><figcaption>My caption</figcaption>
</figure>
Header 2
diff --git a/test/writer.html4 b/test/writer.html4
index 6d15f239e..96e8a7979 100644
--- a/test/writer.html4
+++ b/test/writer.html4
@@ -518,7 +518,7 @@ Blah
<h1 id="images">Images</h1>
<p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
<div class="figure">
-<img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune" />
+<img src="lalune.jpg" title="Voyage dans la Lune" alt="" />
<p class="caption">lalune</p>
</div>
<p>Here is a movie <img src="movie.jpg" alt="movie" /> icon.</p>
diff --git a/test/writer.html5 b/test/writer.html5
index 88b382ed2..d26b83d9b 100644
--- a/test/writer.html5
+++ b/test/writer.html5
@@ -521,7 +521,7 @@ Blah
<h1 id="images">Images</h1>
<p>From “Voyage dans la Lune” by Georges Melies (1902):</p>
<figure>
-<img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune" /><figcaption>lalune</figcaption>
+<img src="lalune.jpg" title="Voyage dans la Lune" alt="" /><figcaption>lalune</figcaption>
</figure>
<p>Here is a movie <img src="movie.jpg" alt="movie" /> icon.</p>
<hr />