| OLD | NEW |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/
DTD/xhtml11.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/
DTD/xhtml11.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> | 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> | 3 <head> |
| 4 <title id='t'>Original Title</title> | 4 <title id='t'>Original Title</title> |
| 5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <p id="description"></p> | 8 <p id="description"></p> |
| 9 <div id="console"></div> | 9 <div id="console"></div> |
| 10 <script> | 10 <script> |
| 11 description("This test ensures that we can update the contents of the title tag
of the XHTML document when setting document.title"); | 11 description("This test ensures that we can update the contents of the title tag
of the XHTML document when setting document.title"); |
| 12 | 12 |
| 13 document.title = 'This is the new title'; | 13 document.title = 'This is the new title'; |
| 14 shouldBe("document.getElementById('t').innerText", "'This is the new title'"); | 14 shouldBe("document.getElementById('t').innerText", "'This is the new title'"); |
| 15 </script> | 15 </script> |
| 16 <script src="../js/resources/js-test-post.js"></script> | |
| 17 </body> | 16 </body> |
| 18 </html> | 17 </html> |
| OLD | NEW |