W3C home > Mailing lists > Public > www-html@w3.org > November 1999

Re: HTML comments in <title> elements - valid or not?

From: Dan Connolly <connolly@w3.org>
Date: Mon, 08 Nov 1999 11:50:49 -0600
Message-ID: <38270D79.D4D35CF3@w3.org>
To: "Russell Steven Shawn O'Connor" <roconnor@uwaterloo.ca>
CC: W3C HTML <www-html@w3.org>
I suppose our messages crossed...

Russell Steven Shawn O'Connor wrote:
> On Mon, 8 Nov 1999, Dan Connolly wrote:
> > Perhaps we should have added a NOTE about why this restriction is there:
> > it's there because older HTML implementations treated <!--...---> as
> > character data, and I think some versions of the HTML spec declared
> > the TITLE element as CDATA. So there are known interoperability
> > problems,
> > so authors are prohibited from going there.
> Actually come to think about it, if interoperability is an issue, then why
> move to PCDATA?

"There are SGML mechanisms, CDATA and RCDATA declared content, that
allow most `<', `>', and `&' characters to be entered without the use of
references. Because these mechanisms tend to be used and implemented
inconsistently, and because they conflict with techniques for reducing
7 bit ASCII for transport, they are deprecated in this version of HTML.
section Example and Listing: XMP, LISTING. "

> This is going to break older implementations anyway.  If
> we are going to break older implementaitons, why no go all the way and
> allow comments in titles?  Comments (and esp marked sections) could be
> very useful.
> ex
> <TITLE/<![TEMP[DRAFT - ]]>HTML 4.01 spec/

Dan Connolly, W3C
tel:+1-512-310-2971 (office, mobile)
mailto:connolly.pager@w3.org (put your tel# in the Subject:)
Received on Monday, 8 November 1999 12:50:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:05:51 UTC