longdesc Test Cases

1. longdesc on a different page using an absolute URL

Line Graph of Number of Subscribers

2. longdesc on a different page using a relative URL

Line Graph of Number of Subscribers

3. longdesc on the same page using a fragment identifier

Line Graph of Number of Subscribers

4. longdesc as a descendant of an <a> element

Line Graph of Number of Subscribers

(longdesc provides an off-page description while a normal link provides a larger image.)

5. Data URI longdesc

Line Graph of Number of Subscribers

Expected Results

Markup

<h2 id="ld1">1. <code>longdesc</code> on a different page using an absolute
<abbr title="Uniform Resource Locator">URL</abbr></h2>
<img
longdesc="http://www.d.umn.edu/~lcarlson/research/ld-tests/assets/ld/graph.html"
alt="Line Graph of Number of Subscribers"
src="../assets/images/graph.png">

<h2 id="ld2">2. <code>longdesc</code> on a different page using a relative URL</h2>
<img
longdesc="../assets/ld/graph.html"
alt="Line Graph of Number of Subscribers"
src="../assets/images/graph.png">
<h2 id="ld3">3. <code>longdesc</code> on the same page using a fragment identifier</h2>
<img
longdesc="#desc"
alt="Line Graph of Number of Subscribers"
src="../assets/images/graph.png">
<h2 id="ld4">4. <code>longdesc</code> as a descendant of a URL</h2>
<a href="../assets/images/graph1x.png">
<img
longdesc="../assets/ld/graph.html"
alt="Line Graph of Number of Subscribers"
src="../assets/images/graph.png">
</a>
<h2 id="ld5">5. Data URI <code>longdesc</code></h2>
<img
longdesc="data:text/html;base64,PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CjxtZXRhIGNoYXJzZXQ9InV0Zi04Ij4KICAgIDx0aXRsZT5Mb25nIERlc2NyaXB0aW9uOiBMaW5lIEdyYXBoIG9mIE51bWJlciBvZiBTdWJzY3JpYmVyczwvdGl0bGU+CjwvaGVhZD4KICA8Ym9keT4KICAgICAgPGgxPkxvbmcgRGVzY3JpcHRpb246IExpbmUgR3JhcGggb2YgTnVtYmVyIG9mIFN1YnNjcmliZXJzPC9oMT4KICAgICAgPGgyIGlkPSJzdW1tYXJ5Ij5TdW1tYXJ5PC9oMj4KICAgICAgPHA+VGh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ogICAgICAgICAgPHRkPjY8L3RkPgogICAgICAgIDwvdHI+CiAgICAgICAgPHRyPgogICAgICAgICAgPHRoIHNjb3BlPSJyb3ciPjIwMDQ8L3RoPgogICAgICAgICAgPHRkPjM0MjwvdGQ+CiAgICAgICAgPC90cj4KICAgICAgICA8dHI+CiAgICAgICAgICA8dGggc2NvcGU9InJvdyI+MjAwNjwvdGg+CiAgICAgICAgICA8dGQ+ODA1PC90ZD4KICAgICAgICA8L3RyPgogICAgICAgIDx0cj4KICAgICAgICAgIDx0aCBzY29wZT0icm93Ij4yMDA4PC90aD4KICAgICAgICAgIDx0ZD4xMjExPC90ZD4KICAgICAgICA8L3RyPgogICAgICAgIDx0cj4KICAgICAgICAgIDx0aCBzY29wZT0icm93Ij4yMDEwPC90aD4KICAgICAgICAgIDx0ZD4xOTk5PC90ZD4KICAgICAgICA8L3RyPgogICAgICAgIDx0cj4KICAgICAgICAgIDx0aCBzY29wZT0icm93Ij4yMDEyPC90aD4KICAgICAgICAgIDx0ZD4yNTQzPC90ZD4KICAgICAgICA8L3RyPgogICAgICA8L3RhYmxlPgogICAgPC9kaXY+CiAgPC9ib2R5Pgo8L2h0bWw+"
alt="Line Graph of Number of Subscribers"
src="../assets/images/graph.png">

On-Page longdesc Target

Summary

This line graph illustrates the steady upward trend of the number of subscribers from 2002 to 2012.

Graph Construction

Data

Year Number of Subscribers
2002 6
2004 342
2006 805
2008 1211
2010 1999
2012 2543