| <!DOCTYPE html> |
| <html> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| </script> |
| <body id="body"> |
| |
| <ul> |
| <li><span class="a">test</span><span class="b">1</span></li> |
| <li id="test b"><span class="a">test</span><span class="b">2</span></li> |
| </ul> |
| |
| <ol> |
| <li id="test a"><span class="a">test</span><span class="b">1</span></li> |
| <li><span class="a">test</span><span class="b">2</span></li> |
| </ol> |
| |
| <BR><BR><BR><hr><BR> |
| <div id="result"></div> |
| |
| <script> |
| if (window.accessibilityController) { |
| var result = document.getElementById("result"); |
| |
| var ulListElement = window.accessibilityController.accessibleElementById("test a"); |
| result.innerText += 'il in ul title: ' + ulListElement.title + "\n\n"; |
| |
| var olListElement = window.accessibilityController.accessibleElementById("test b"); |
| result.innerText += 'il in ol title: ' + olListElement.title + "\n\n"; |
| } |
| </script> |
| </body> |
| </html> |