blob: f07008d9fb9cca068dd35cf8a7163f4414555491 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title id='t'>Original Title</title>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>
description("This test ensures that we can update the contents of the title tag of the XHTML document when setting document.title");
document.title = 'This is the new title';
shouldBe("document.getElementById('t').innerText", "'This is the new title'");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>