Advertisement
Guest User

ARIA application role test (HTML)

a guest
Jul 7th, 2011
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.11 KB | None | 0 0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2.        "http://www.w3.org/TR/html4/strict.dtd">
  3.  
  4. <html lang="en-US">
  5.  
  6. <head>
  7.     <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1">
  8.     <title>ARIA - application role test</title>
  9.     <link rel="stylesheet" href="test.css" type="text/css">
  10.     <script type="text/javascript" src="test.js"></script>
  11. </head>
  12.  
  13. <body onload="onBodyLoad()">
  14.     <h1>ARIA - <a href="http://www.w3.org/TR/wai-aria/roles#application">application role</a> test</h1>
  15.     <p>
  16.         This page is meant to test the behavior of JAWS when dealing with ARIA's
  17.         <a href="http://www.w3.org/TR/wai-aria/roles#application">application</a>
  18.         and <a href="http://www.w3.org/TR/wai-aria/roles#document">document</a>
  19.         roles.
  20.     </p>
  21.     <p>
  22.         The sample menu below is embedded in a container <code>div</code> with an
  23.         <code>role="application"</code> attribute/value pair. Upon entering that
  24.         container, the screen reader should switch to application mode.
  25.     </p>
  26.     <p>
  27.         With Firefox 5, both JAWS 11 and 12 do not give the expected results. When
  28.         focus arrives at the menu widget, keystrokes are not properly passed onto
  29.         the application as they should. Instead, JAWS handles them in the usual way,
  30.         e.g., for left and right arrow keys, it reads out each letter when those
  31.         keystrokes should actually be handled by the widget's associated script.
  32.     </p>
  33.     <p>
  34.         Simply moving the <code>role="application"</code> attribute/value pair up
  35.         to the <code>body</code> element produces the desired behavior.
  36.     </p>
  37.     <div role="application">
  38.         <ul id="fruits" role="menu" tabindex="0" aria-activedescendant="1">
  39.             <li id="1" role="menu-item" class="selectedItem" tabindex="-1">Apple</li>
  40.             <li id="2" role="menu-item" class="item" tabindex="-1">Orange</li>
  41.             <li id="3" role="menu-item" class="item" tabindex="-1">Guava</li>
  42.             <li id="4" role="menu-item" class="item" tabindex="-1">Banana</li>
  43.         </ul>
  44.     </div>
  45. </body>
  46.  
  47. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement