[whatwg] <details> for long description of image/ video etc

Bruce Lawson brucel at opera.com
Sat Apr 2 00:07:29 PDT 2011


   From a comment in a blog post of mine about longdesc
(http://www.brucelawson.co.uk/2011/longdesc-in-html5/comment-page-1/#comment-749853)
I'm wondering if this is an appropriate used of <details>

<details>
    <summary>
    <img src=chart.png alt="Graph of percentage of total U.S.
non-institutionalized population age 16-64 declaring one or more
disabilities">
    </summary>
<p>The bar graph shows the percentage of total U.S. noninsitutionalized
population age 16-64 declaring one or more disabilities. The percentage
value for each category is as follows:</p>
				<ul>
					<li>Total declaring one or more disabilities: 18.6 percent </li>
					<li>Sensory (visual and hearing): 2.3 percent</li>
					<li>Physical: 6.2 percent</li>
					<li>Mental: 3.8 percent</li>
					<li>Self-care: 1.8 percent</li>
					<li>Diffuculty going outside the home: 6.4 percent</li>
					<li>Employment disability: 11.9 percent</li>
				</ul>
				<p>data retrieved from <a
href="http://www.census.gov/prod/2003pubs/c2kbr-17.pdf" title="Link to
External Site" class="external">2000 U.S. Census<span> -
           external link</span></a></p>
</details>

.. thereby acting as a discoverable-by-anyone longdesc. (The example is
adapted from the longdesc example at
http://webaim.org/techniques/images/longdesc#longdesc)

Note to grumpy people: I'm not trying to advocate abolishing longdesc,
just seeeing whether details can be used as an alternative.


More information about the whatwg mailing list