| 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 previousElementSibling property
on a DocumentType node.'); | 5 description('This tests the NonDocumentTypeChildNode interface previousElementSi
bling property on a DocumentType node.'); |
| 6 | 6 |
| 7 var doctype = document.doctype; | 7 var doctype = document.doctype; |
| 8 shouldBeNull('doctype.previousElementSibling'); | 8 shouldBeUndefined('doctype.previousElementSibling'); |
| 9 document.insertBefore(new Comment(), doctype); | |
| 10 shouldBeNull('doctype.previousElementSibling'); | |
| 11 | 9 |
| 12 </script> | 10 </script> |
| OLD | NEW |