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