| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 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.") |
| 9 | 9 |
| 10 debug('create a title element and insert it to document.'); | 10 debug('create a title element and insert it to document.'); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 var subtree2 = document.createElement('div'); | 33 var subtree2 = document.createElement('div'); |
| 34 var shadow2 = subtree2.createShadowRoot(); | 34 var shadow2 = subtree2.createShadowRoot(); |
| 35 shadow2.innerHTML = '<title>shadow title2</title>'; | 35 shadow2.innerHTML = '<title>shadow title2</title>'; |
| 36 document.head.appendChild(subtree2); | 36 document.head.appendChild(subtree2); |
| 37 shouldBe('document.title', '""'); | 37 shouldBe('document.title', '""'); |
| 38 debug('remove the subtree from document'); | 38 debug('remove the subtree from document'); |
| 39 document.head.removeChild(subtree2); | 39 document.head.removeChild(subtree2); |
| 40 shouldBe('document.title', '""'); | 40 shouldBe('document.title', '""'); |
| 41 | 41 |
| 42 </script> | 42 </script> |
| 43 <script src="../../js/resources/js-test-post.js"></script> | |
| 44 </body> | 43 </body> |
| 45 </html> | 44 </html> |
| OLD | NEW |