| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head id="head"> | 3 <head id="head"> |
| 4 <link rel="stylesheet" href="../js/resources/js-test-style.css"> | |
| 5 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.js"></script> |
| 6 </head> | 5 </head> |
| 7 <body> | 6 <body> |
| 8 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a
>: | 7 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=76701">bug 76701</a
>: |
| 9 map http-equiv content-language to -webkit-locale. This particular test tests | 8 map http-equiv content-language to -webkit-locale. This particular test tests |
| 10 that a dynamically added content-language is processed. This expectation may | 9 that a dynamically added content-language is processed. This expectation may |
| 11 change, see bug. The HTML 5 spec decrees that http-equiv content-language be | 10 change, see bug. The HTML 5 spec decrees that http-equiv content-language be |
| 12 processed when it is | 11 processed when it is |
| 13 <a href="http://dev.w3.org/html5/spec/Overview.html#insert-an-element-into-a-doc
ument">inserted into the document</a>. | 12 <a href="http://dev.w3.org/html5/spec/Overview.html#insert-an-element-into-a-doc
ument">inserted into the document</a>. |
| 14 In Firefox and IE adding the meta element dynamically doesn't seem to affect | 13 In Firefox and IE adding the meta element dynamically doesn't seem to affect |
| (...skipping 13 matching lines...) Expand all Loading... |
| 28 | 27 |
| 29 var meta = document.createElement("meta"); | 28 var meta = document.createElement("meta"); |
| 30 meta.httpEquiv = "content-language"; | 29 meta.httpEquiv = "content-language"; |
| 31 meta.content = "ja"; | 30 meta.content = "ja"; |
| 32 document.getElementById("head").appendChild(meta); | 31 document.getElementById("head").appendChild(meta); |
| 33 shouldBeEqualToString("languageOfNode('x')", "ja"); | 32 shouldBeEqualToString("languageOfNode('x')", "ja"); |
| 34 shouldBeEqualToString("languageOfNode('y')", "ar"); | 33 shouldBeEqualToString("languageOfNode('y')", "ar"); |
| 35 </script> | 34 </script> |
| 36 </body> | 35 </body> |
| 37 </html> | 36 </html> |
| OLD | NEW |