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

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

From: Russell Steven Shawn O'Connor <roconnor@uwaterloo.ca>
Date: Tue, 2 Nov 1999 13:52:43 -0500 (EST)
To: Sean Richardson <sidr@albedo.net>
cc: www-html@w3.org
Message-ID: <Pine.SOL.3.95q.991102134759.29386A-100000@wronski.math.uwaterloo.ca>
On Tue, 2 Nov 1999, Sean Richardson wrote:

> 
> On the other hand, the following comment was made to the bug report:
> "The content model of TITLE is #PCDATA, not CDATA, so comments are allowed, 
> I think.  By other markup, the spec meant other elements." Is this latter
> reading correct? In other words, are comments valid in <title> elements?

I beleive you are correct.  By other markup, the spec meant other
elements.
 
> Or putting it pragmatically, should Mozilla look inside the <title>
> for anything besides entities at all, or just spit it out as is?

Mozilla should look for and handle entities, comments, and marked sections
and processing instructions in title elements.

Of course, Mozilla doesn't handle marked sections anywhere, so that is a
more general problem.

I also forget what the rules for processing instructions are.  I assume
that user agents should just ignore them (unless they understand them).

> For the record, both NN 4.7 and IE 5 show the comment in the title bar 
> when displaying the bug reporter's testcase.

They are also broken.

-- 
Russell O'Connor                           roconnor@uwaterloo.ca
       <http://www.undergrad.math.uwaterloo.ca/~roconnor/>
``And truth irreversibly destroys the meaning of its own message''
-- Anindita Dutta, ``The Paradox of Truth, the Truth of Entropy''
Received on Tuesday, 2 November 1999 13:53:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:40 GMT