1 <html xmlns=
"http://www.w3.org/1999/xhtml">
3 <script src=
"../../resources/js-test.js"></script>
6 <p>This tests that the attribute in no namespace with no prefix and with the literal localname
"xml:lang" is ignored in HTML. See
7 <a href=
"http://webkit.org/b/67586">bug
67586</a>.
</p>
8 <div id=
"console"></div>
9 <div xml:
lang=
"ar" id=
"m1"></div>
10 <div lang=
"ko"><div xml:
lang=
"ar" id=
"n1"></div></div>
11 <div lang=
"ar" id=
"o1"><div xml:
lang=
"" id=
"o2"></div></div>
13 function languageOfNode(id
) {
14 var element
= document
.getElementById(id
);
15 return window
.getComputedStyle(element
).webkitLocale
;
17 shouldBeEqualToString("languageOfNode('m1')", "auto");
18 shouldBeEqualToString("languageOfNode('n1')", '"ko"');
19 shouldBeEqualToString("languageOfNode('o1')", '"ar"');
20 shouldBeEqualToString("languageOfNode('o2')", '"ar"');
22 var successfullyParsed
= true;