| document.getElementById('console').appendChild(document.createTextNode(msg + "\n")); |
| log("PASS: a doctype after a comment was not ignored."); |
| log("FAIL: a doctype after a comment was ignored."); |
| if (document.childNodes[1] == document.doctype) |
| log("PASS: a doctype after a comment was set as the second element correctly and not moved to be the first child."); |
| log("FAIL: a doctype after a comment was not set as the second element correctly."); |
| This tests the behavior of a Doctype after a comment at the beginning of the document.. |