OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> |
| 3 <head> |
| 4 <script> |
| 5 if (window.testRunner) |
| 6 testRunner.dumpAsText(); |
| 7 </script> |
| 8 </head> |
| 9 <body> |
| 10 |
| 11 <label> |
| 12 Row 1 |
| 13 <input type="checkbox"> |
| 14 <a href="#" id="a1">More info</a> |
| 15 <button>Do something</button> |
| 16 </label> |
| 17 |
| 18 <p id="description">This tests that a link element present inside a label elemen
t is accessible when label has more than one child.</p> |
| 19 <div id="result"></div> |
| 20 |
| 21 <script> |
| 22 if (window.accessibilityController) { |
| 23 var test = document.getElementById("a1"); |
| 24 test.focus(); |
| 25 test = accessibilityController.focusedElement; |
| 26 result.innerText = "\nRole was:" + test.role; |
| 27 } |
| 28 </script> |
| 29 |
| 30 </body> |
| 31 </html> |
OLD | NEW |