Index: LayoutTests/accessibility/language-attribute.html |
diff --git a/LayoutTests/accessibility/language-attribute.html b/LayoutTests/accessibility/language-attribute.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..87c9f6b1c0fa8de23b0568338e194dc4c9303174 |
--- /dev/null |
+++ b/LayoutTests/accessibility/language-attribute.html |
@@ -0,0 +1,32 @@ |
+<!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> |