- From: Terry Allen <terry@ora.com>
- Date: Fri, 7 Apr 1995 16:30:59 EDT
- To: igraham@alchemy.chem.utoronto.ca, Multiple recipients of list <www-html@www10.w3.org>
It is true that the HEAD and BODY tags need not be entered in a valid HTML document. If you parsed the doc as SGML, these tags would be supplied by the parser (so in one sense they're required in the parser output). But you needn't parse to find the end of the HEAD; as suggested, look for the first non-HEAD element. There's a complete disjunction between what may appear in HEAD and what may appear in BODY, so when you hit the first non-HEAD tag you must be in the BODY. (Now from the SGML point of view, an empty string satisfies the 2.0 DTD; I don't know what you should do in that case ...) Regards, -- Terry Allen (terry@ora.com)
Received on Friday, 7 April 1995 16:31:22 UTC