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