Re: Simple(?) question on obscure comments detail

Daniel W. Connolly (
Fri, 20 Sep 1996 18:13:57 -0400

Message-Id: <>
To: (Arnoud "Galactus" Engelfriet)
Subject: Re: Simple(?) question on obscure comments detail 
In-reply-to: Your message of "Thu, 19 Sep 1996 22:29:05 +0200."
Date: Fri, 20 Sep 1996 18:13:57 -0400
From: "Daniel W. Connolly" <>

In message <>, Arnoud "Galactus" Engelfriet write
>First tried to ask on www-talk, but unfortunately no one could offer
>an authoritative answer yet there..
>RFC 1866 defines an HTML comment tag as "<!" followed by 0 or more
>comments followed by ">". A comment is defined as "anything but
>the '--' sequence, enclosed in '--'". Now, is the following tag
>a valid comment?
><!-- hello--->
>Should a parser accept the first '-' of the three as part of the
>contents, or should it barf on the "->" stuff outside the first

As other folks said, that's not a legal comment. But it _does_
match the description you gave! So RFC1866 is wrong!

Er wait... youre paraphrase is incorrect. The actual text is:


A comment declaration consists of `<!' followed by zero or more
comments followed by `>'. Each comment starts with `--' and includes
all text up to and including the next occurrence of `--'.