W3C home > Mailing lists > Public > www-validator@w3.org > September 2001

Re: Tags within comment blocks visible to validator

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 11 Sep 2001 17:52:47 +0200
To: "Robert E. Menteer II" <reetnem@bigfoot.com>
Cc: www-validator@w3.org
Message-ID: <kncsptshmi60q278ui79ne5dp8qr8l0n05@4ax.com>
* Robert E. Menteer II wrote:
>The following document does not validate because the <HTML> tag within 
>the comment
>block is seen by the parser!
>    "http://www.w3.org/TR/REC-html40/strict.dtd">
>  <Head>
>   <!-- This tag should not be seen! <HTML> -->
>  </Head>
>  <Body>
>  This page does not validate!
>  </Body>

No, the document doesn't validate because of the missing required title
element and required children of the body element and lack of an element
containing the PCDATA "This page does not validate!" since literal
PCDATA must not occur in the body in HTML4 strict.
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Tuesday, 11 September 2001 11:53:57 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:31 UTC