2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <script src=
"../../resources/js-test.js"></script>
7 <p>Test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=76701">bug
76701</a>:
8 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests
9 that a content-language is used even if it appears at the end of the document.
10 This expectation may change, see bug. According to the HTML
5 spec, a meta
11 element should be processed when it is inserted into the document, regardless
12 of where. IE and Firefox also seem to process the content-language at the end
15 <div id=
"console"></div>
17 <div id=
"y" lang=
"ar"></div>
19 function languageOfNode(id
) {
20 var element
= document
.getElementById(id
);
21 return window
.getComputedStyle(element
).webkitLocale
;
23 shouldBeEqualToString("languageOfNode('x')", '"ja-JP"');
24 shouldBeEqualToString("languageOfNode('y')", '"ar"');
26 <meta http-equiv=
"content-language" content=
"ja-JP">