| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <html> |
| <head> |
| <script src="../resources/js-test.js"></script> |
| <meta http-equiv="content-language" content="en"> |
| </head> |
| <body id="body"> |
| |
| <p lang="pl">polish</p> |
| |
| <p id="description"></p> |
| <div id="console"></div> |
| |
| <script> |
| |
| description("Check whether languages are reported properly"); |
| |
| if (window.accessibilityController) { |
| var body = document.getElementById("body"); |
| body.focus(); |
| |
| var webPageLang = accessibilityController.focusedElement; |
| debug(webPageLang.language); |
| |
| var lang = webPageLang.childAtIndex(0); |
| debug(lang.language); |
| } |
| |
| </script> |
| |
| </body> |
| </html> |