Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-describedby-on-input.html
1 <html>
2 <script>
3     if (window.testRunner)
4         testRunner.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="description1 description2"/>
9     <span id="unit"> minutes.</span>
10     <div id="description1">Allows you to specify the number of minutes after</div>
11     <div id="description2">which the computer will self-destruct.</div>
12     <div id="result"></div>
13     
14     <script>
15         if (window.accessibilityController) {
16             var labeledItem = document.getElementById("time");
17             labeledItem.focus();
18             var result = document.getElementById("result");
19             result.innerText = "\nThe accessibility description is \"" + accessibilityController.focusedElement.helpText + "\"";
20         }
21     </script>
22 </body>
23 </html>