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