W3C home > Mailing lists > Public > public-html-commits@w3.org > July 2010

html5/spec Overview.html,1.4132,1.4133

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 23 Jul 2010 23:15:24 +0000
To: public-html-commits@w3.org
Message-Id: <E1OcRSe-0007zg-VN@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv30690

Modified Files:
	Overview.html 
Log Message:
Add example of using ARIA with <figure>. (whatwg r5196)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4132
retrieving revision 1.4133
diff -u -d -r1.4132 -r1.4133
--- Overview.html	23 Jul 2010 20:48:14 -0000	1.4132
+++ Overview.html	23 Jul 2010 23:15:20 -0000	1.4133
@@ -9186,6 +9186,36 @@
   <code title="attr-aria-role-button">button</code> role cannot be
   used with <code><a href="#the-a-element">a</a></code> elements".</p>
 
+  </div><div class="example">
+
+   <p>These features can be used to make accessibility tools render
+   content to their users in more useful ways. For example, ASCII art,
+   which is really an image, appears to be text, and in the absence of
+   appropriate annotations would end up being rendered by screen
+   readers as a very painful reading of lots of punctuation. Using the
+   features described in this section, one can instead make the ATs
+   skip the ASCII art and just read the caption:</p>
+
+   <pre>&lt;figure <strong>role="img" aria-labeledby="fish-caption"</strong>&gt;
+ &lt;pre&gt;
+ o           .'`/
+     '      /  (
+   O    .-'` ` `'-._      .')
+      _/ (o)        '.  .' /
+      )       )))     &gt;&lt;  &lt;
+      `\  |_\      _.'  '. \
+        '-._  _ .-'       '.)
+    jgs     `\__\
+ &lt;/pre&gt;
+ &lt;figcaption <strong>id="fish-caption"</strong>&gt;
+  Joan G. Stark, "&lt;cite&gt;fish&lt;/cite&gt;".
+  October 1997. ASCII on electrons. 28&times;8.
+ &lt;/figcaption&gt; 
+&lt;/figure&gt; 
+   </pre>
+
+   <!-- source: http://www.geocities.com/SoHo/7373/aquatic.htm#fish -->
+
   </div><h3 id="apis-in-html-documents"><span class="secno">3.3 </span>APIs in HTML documents</h3><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i><p>For <a href="#html-documents">HTML documents</a>, and for <a href="#html-elements">HTML
   elements</a> in <a href="#html-documents">HTML documents</a>, certain APIs defined
   in DOM Core become case-insensitive or case-changing, as sometimes
Received on Friday, 23 July 2010 23:15:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 23 July 2010 23:15:33 GMT