The head and body tags appear side by side in this test:
</HEAD><BODY>
so you should not see an [object Text] between the ending head and beginning body tags.