2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <meta http-equiv=
"content-language" content=
"">
5 <script src=
"../../resources/js-test.js"></script>
8 <p>Test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=76701">bug
76701</a>:
9 map HTTP-EQUIV content-language to -webkit-locale. This particular test tests
10 that a content-language of empty string is ignored. This expectation may
11 change, see bug. HTML5 decrees that the meta element be ignored in case of the
12 empty string. It's unclear what other browsers do.
14 <div id=
"console"></div>
16 <div id=
"y" lang=
"ar"></div>
18 function languageOfNode(id
) {
19 var element
= document
.getElementById(id
);
20 return window
.getComputedStyle(element
).webkitLocale
;
22 shouldBeEqualToString("languageOfNode('x')", "auto");
23 shouldBeEqualToString("languageOfNode('y')", '"ar"');