Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
- <html lang="en-US">
- <head>
- <meta http-equiv="Content-type" content="text/html; charset=iso-8859-1">
- <title>ARIA - application role test</title>
- <link rel="stylesheet" href="test.css" type="text/css">
- <script type="text/javascript" src="test.js"></script>
- </head>
- <body onload="onBodyLoad()">
- <h1>ARIA - <a href="http://www.w3.org/TR/wai-aria/roles#application">application role</a> test</h1>
- <p>
- This page is meant to test the behavior of JAWS when dealing with ARIA's
- <a href="http://www.w3.org/TR/wai-aria/roles#application">application</a>
- and <a href="http://www.w3.org/TR/wai-aria/roles#document">document</a>
- roles.
- </p>
- <p>
- The sample menu below is embedded in a container <code>div</code> with an
- <code>role="application"</code> attribute/value pair. Upon entering that
- container, the screen reader should switch to application mode.
- </p>
- <p>
- With Firefox 5, both JAWS 11 and 12 do not give the expected results. When
- focus arrives at the menu widget, keystrokes are not properly passed onto
- the application as they should. Instead, JAWS handles them in the usual way,
- e.g., for left and right arrow keys, it reads out each letter when those
- keystrokes should actually be handled by the widget's associated script.
- </p>
- <p>
- Simply moving the <code>role="application"</code> attribute/value pair up
- to the <code>body</code> element produces the desired behavior.
- </p>
- <div role="application">
- <ul id="fruits" role="menu" tabindex="0" aria-activedescendant="1">
- <li id="1" role="menu-item" class="selectedItem" tabindex="-1">Apple</li>
- <li id="2" role="menu-item" class="item" tabindex="-1">Orange</li>
- <li id="3" role="menu-item" class="item" tabindex="-1">Guava</li>
- <li id="4" role="menu-item" class="item" tabindex="-1">Banana</li>
- </ul>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement