Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / xml-lang-ignored-in-html.html
blob187d3e2d58496ffd8305f2c58192da98db6ca3ad
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <head>
3 <script src="../../resources/js-test.js"></script>
4 </head>
5 <body>
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>
12 <script>
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;
23 </script>
24 </body>
25 </html>