OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <head></head> |
| 3 <body> |
| 4 <script src="../../resources/js-test.js"></script> |
| 5 <script type="text/javascript"> |
| 6 description("Test that setting document.title when there is no <head> or &
lt;title> does nothing"); |
| 7 onload = function() |
| 8 { |
| 9 var head = document.head; |
| 10 while (head.firstChild) |
| 11 document.documentElement.appendChild(head.firstChild); |
| 12 document.documentElement.removeChild(head); |
| 13 document.title = "New title"; |
| 14 shouldBeEmptyString('document.title'); |
| 15 } |
| 16 </script> |
| 17 </body> |
OLD | NEW |