2011-05-24 Jay Civelli <jcivelli@chromium.org>
[WebKit-https.git] / LayoutTests / accessibility / aria-describedby-on-input.html
1 <html>
2 <script>
3     if (window.layoutTestController)
4         layoutTestController.dumpAsText();
5 </script>
6 <body>
7     <span id="message">This computer will self-destruct in</span>
8     <input id="time" type="text" value="10" aria-describedby="description"/>
9     <span id="unit"> minutes.</span>
10     <div id="description">Allows you to specify the number of minutes after which the computer will self-destruct.</div>
11     <div id="result"></div>
12     
13     <script>
14         if (window.accessibilityController) {
15             var labeledItem = document.getElementById("time");
16             labeledItem.focus();
17             var result = document.getElementById("result");
18             result.innerText = "\nThe accessibility description is \"" + accessibilityController.focusedElement.description + "\"";
19         }
20     </script>
21 </body>
22 </html>