| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
| <!-- This tests the exposure of a document's encoding and URI to assistive technologies --> |
| if (window.accessibilityController) { |
| var body = document.getElementById("body"); |
| var webArea = accessibilityController.focusedElement; |
| var result = document.getElementById("result"); |
| var documentEncoding = webArea.documentEncoding; |
| var documentURI = webArea.documentURI; |
| if (documentEncoding == "UTF-8" && documentURI == location.href) { |
| result.innerText = "Passed"; |
| result.innerText = "Failed:\nExpected: UTF-8 and " + location.href + ".\nActual: " + documentEncoding + " and " + documentURI + "."; |