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">
4 <title id='t'
>Original Title
</title>
5 <script src=
"../../resources/js-test.js"></script>
8 <p id=
"description"></p>
9 <div id=
"console"></div>
11 description("This test ensures that we can update the contents of the title tag of the XHTML document when setting document.title");
13 document
.title
= 'This is the new title';
14 shouldBe("document.getElementById('t').innerText", "'This is the new title'");