blob: 80bd7a975233e9ca026ec7e57d9d0e74d56d69f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html>
<title>document title and the empty string</title>
<script src="../../resources/js-test.js"></script>
<body>
<script>
description("On setting document.title to the empty string, no text node must be created");
var head = document.documentElement.firstChild;
head.removeChild(head.firstChild);
shouldBeEqualToString("document.title", "");
document.title = "";
shouldBeEqualToString("document.title", "");
shouldBeTrue("head.lastChild instanceof HTMLTitleElement");
shouldBe("head.lastChild.firstChild", 'null');
</script>
</body>
|