| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="resources/polyfill.js"></script> | |
| 5 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
| 6 </head> | 5 </head> |
| 7 <body> | 6 <body> |
| 8 <script> | 7 <script> |
| 9 description("This test ensures that title elements in a shadow subtree do not af
fect document.title attribute.") | 8 description("This test ensures that title elements in a shadow subtree do not af
fect document.title attribute.") |
| 10 | 9 |
| 11 debug('create a title element and insert it to document.'); | 10 debug('create a title element and insert it to document.'); |
| 12 var title = document.createElement('title'); | 11 var title = document.createElement('title'); |
| 13 title.appendChild(document.createTextNode('document title')); | 12 title.appendChild(document.createTextNode('document title')); |
| 14 document.head.appendChild(title); | 13 document.head.appendChild(title); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 37 document.head.appendChild(subtree2); | 36 document.head.appendChild(subtree2); |
| 38 shouldBe('document.title', '""'); | 37 shouldBe('document.title', '""'); |
| 39 debug('remove the subtree from document'); | 38 debug('remove the subtree from document'); |
| 40 document.head.removeChild(subtree2); | 39 document.head.removeChild(subtree2); |
| 41 shouldBe('document.title', '""'); | 40 shouldBe('document.title', '""'); |
| 42 | 41 |
| 43 </script> | 42 </script> |
| 44 <script src="../../js/resources/js-test-post.js"></script> | 43 <script src="../../js/resources/js-test-post.js"></script> |
| 45 </body> | 44 </body> |
| 46 </html> | 45 </html> |
| OLD | NEW |