| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/js-test.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
| 3 <script> | 3 <script> |
| 4 | 4 |
| 5 description('This tests the ChildNode interface nextElementSibling property on a
DocumentType node.'); | 5 description('This tests the NonDocumentTypeChildNode interface nextElementSiblin
g property on a DocumentType node.'); |
| 6 | 6 |
| 7 var doctype = document.doctype; | 7 var doctype = document.doctype; |
| 8 shouldBe('doctype.nextElementSibling', 'document.documentElement'); | 8 shouldBeUndefined('doctype.nextElementSibling'); |
| 9 document.insertBefore(new Comment(), document.documentElement); | |
| 10 shouldBe('doctype.nextElementSibling', 'document.documentElement'); | |
| 11 | 9 |
| 12 </script> | 10 </script> |
| OLD | NEW |