Comments in markup?

Arnoud (galactus@stack.urc.tue.nl)
Mon, 29 Jul 1996 18:56:45 +0200


From: galactus@stack.urc.tue.nl (Arnoud "Galactus" Engelfriet)
To: www-html@w3.org
Subject: Comments in markup?
Date: Mon, 29 Jul 1996 18:56:45 +0200
Message-ID: <N1O/x4uYOVnO089yn@stack.urc.tue.nl>

Yesterday I received an e-mail from someone who wanted to know more
about HTML comments. I explained how they worked, and she then came
up with the idea that you could embed comments in HTML tags then:
<A HREF="foo" -- A link to foo -->click here</A> would, according to
her, be technically legal. Webtechs[0] didn't agree.

When I tested this myself, I found out I couldn't use any SGML constructs
other than DOCTYPES or comment elements in an HTML document when feeding
it to the Webtechs validator. Is there a reason for this? Why would an
SGML parser allow <!-- foobar --> but not <!ENTITY foobar ...>, both of
which are valid SGML constructs?

Galactus
[0] <URL:http://www.webtechs.com/html-val-svc/>
-- 
To find out more about PGP, send mail with HELP PGP in the SUBJECT line to me.
E-mail: galactus@stack.urc.tue.nl - Please PGP encrypt your mail if you can.
Finger galactus@turtle.stack.urc.tue.nl for public key (key ID 0x416A1A35).
Anonymity and privacy site: <http://www.stack.urc.tue.nl/~galactus/remailers/>