[10311] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: Simple(?) comments question...

daemon@ATHENA.MIT.EDU (Chris Ridd)
Wed Sep 18 05:29:50 1996

Date: Wed, 18 Sep 1996 10:25:42 +0100
From: Chris Ridd <C.Ridd@imc.exec.nhs.uk>
To: Arnoud Galactus Engelfriet <galactus@htmlhelp.com>
Cc: www-talk@w3.org
Resent-From: www-talk@w3.org

Arnoud Galactus Engelfriet wrote:
> Just had a discussion with someone who wanted to know if a "-" can be
> used as the last character in a comment. I would say yes, since a
> comment is terminated by TWO "-" characters. However, is the following
> comment valid?
> 
> <!-- Hello--->

No, the first two "-"s form the end-comment delimiter; the trailing "->"
is text outside the comment, which is probably not what was wanted...

Chris


home help back first fref pref prev next nref lref last post