blob: 4b37e28374fc5f33795f80da329a701513ccaabf [file] [log] [blame]
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="../js/resources/js-test-style.css">
<script src="../js/resources/js-test-pre.js"></script>
</head>
<body>
<p>This tests that the attribute in no namespace with no prefix and with the literal localname "xml:lang" is ignored in HTML. See
<a href="http://webkit.org/b/67586">bug 67586</a>.</p>
<div id="console"></div>
<div xml:lang="ar" id="m1"></div>
<div lang="ko"><div xml:lang="ar" id="n1"></div></div>
<div lang="ar" id="o1"><div xml:lang="" id="o2"></div></div>
<script>
function languageOfNode(id) {
var element = document.getElementById(id);
return window.getComputedStyle(element).webkitLocale;
}
shouldBeEqualToString("languageOfNode('m1')", "auto");
shouldBeEqualToString("languageOfNode('n1')", "ko");
shouldBeEqualToString("languageOfNode('o1')", "ar");
shouldBeEqualToString("languageOfNode('o2')", "ar");
var successfullyParsed = true;
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
</html>