OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/js-test.js"></script> |
| 3 <script type="text/javascript"> |
| 4 description("Test that setting document.title does not reuse <title>'s tex
tnode child"); |
| 5 |
| 6 onload = function() |
| 7 { |
| 8 document.title = "aaa"; |
| 9 oldnode = document.getElementsByTagName("title")[0].firstChild; |
| 10 document.title = "bbb"; |
| 11 shouldBeTrue('oldnode.textContent != "bbb"'); |
| 12 shouldBeTrue('oldnode != document.getElementsByTagName("title")[0].firstChil
d'); |
| 13 } |
| 14 </script> |
OLD | NEW |