| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <script src="../../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="../../resources/js-test-post.js"></script> |
| </body> |
| </html> |
| |