aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2020-07-19 11:24:54 -0700
committerGitHub <noreply@github.com>2020-07-19 11:24:54 -0700
commit8ede05161ffe0e57c330e34965d8d0b8e100d328 (patch)
tree1892bef22bd9ce2352350caa5eaefbe23ef39c41 /test
parent89b8624269e2419d4c9dbd399fce2370054c6921 (diff)
parentb894de64264fe0386b5cb3e1680955a8e879c78e (diff)
downloadpandoc-8ede05161ffe0e57c330e34965d8d0b8e100d328.tar.gz
Merge pull request #6495 from tarleb/html5-figure-accessiblity
HTML writer: improve alt-text/caption handling for HTML5
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/command/5642.md2
-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 d1df1610d..2f415146d 100644
--- a/test/command/3577.md
+++ b/test/command/3577.md
@@ -16,10 +16,10 @@
\end{figure}
^D
<figure>
-<img src="img1.jpg" alt="" /><figcaption>Caption 1</figcaption>
+<img src="img1.jpg" alt="Caption 1" /><figcaption aria-hidden="true">Caption 1</figcaption>
</figure>
<figure>
-<img src="img2.jpg" alt="" /><figcaption>Caption 2</figcaption>
+<img src="img2.jpg" alt="Caption 2" /><figcaption aria-hidden="true">Caption 2</figcaption>
</figure>
```
```
@@ -30,6 +30,6 @@
\end{figure}
^D
<figure>
-<img src="img1.jpg" alt="" /><figcaption>Caption 3</figcaption>
+<img src="img1.jpg" alt="Caption 3" /><figcaption aria-hidden="true">Caption 3</figcaption>
</figure>
```
diff --git a/test/command/4677.md b/test/command/4677.md
index 482db4c02..2694624b9 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" id="img:1" alt="" /><figcaption>Caption</figcaption>
+<img src="img.png" id="img:1" alt="Caption" /><figcaption aria-hidden="true">Caption</figcaption>
</figure>
```
diff --git a/test/command/5121.md b/test/command/5121.md
index 42f2fdea2..419b8b9f4 100644
--- a/test/command/5121.md
+++ b/test/command/5121.md
@@ -5,7 +5,7 @@
## Header 2
^D
<figure>
-<img src="./my-figure.jpg" width="500" alt="" /><figcaption>My caption</figcaption>
+<img src="./my-figure.jpg" width="500" alt="My caption" /><figcaption aria-hidden="true">My caption</figcaption>
</figure>
Header 2
diff --git a/test/command/5642.md b/test/command/5642.md
index 7fe8f5a5f..cd60df812 100644
--- a/test/command/5642.md
+++ b/test/command/5642.md
@@ -3,6 +3,6 @@
![test](foo){aria-describedby="barbaz"}
^D
<figure>
-<img src="foo" aria-describedby="barbaz" alt="" /><figcaption>test</figcaption>
+<img src="foo" aria-describedby="barbaz" alt="test" /><figcaption aria-hidden="true">test</figcaption>
</figure>
```
diff --git a/test/writer.html5 b/test/writer.html5
index 321b65afd..0f0db799e 100644
--- a/test/writer.html5
+++ b/test/writer.html5
@@ -523,7 +523,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="" /><figcaption>lalune</figcaption>
+<img src="lalune.jpg" title="Voyage dans la Lune" alt="lalune" /><figcaption aria-hidden="true">lalune</figcaption>
</figure>
<p>Here is a movie <img src="movie.jpg" alt="movie" /> icon.</p>
<hr />