I remember someone mentioning once that the code which
parses HTML for adding comments looks for < HTML > and < Body> tags
or something. I ahven't looked at the source code, but you might
check if something is looking for some cues in the HTML
files that it is not finding.