W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2001

Re: tidy and comments (fwd)

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 15 Jun 2001 22:06:41 +0200
To: Lars Fredriksen <lars@odin-corporation.com>
Cc: html-tidy@w3.org
Message-ID: <b3qkitkhfh8giva0k430rik3ck5pc8to34@4ax.com>
* Lars Fredriksen wrote:
>Bjoern Hoehrmann wrote:
>
>> * Lars Fredriksen wrote:
>> >Is there a good reason tidy(aug 4, 2000) removes the comments?
>>
>> Tidy doesn't do so. Maybe you point us at example HTML and config files?

>Hi Bjørn,
      ^ Hey! That's not funny! :)

>I run tidy like this:
>
>tidy -ic -ascii -asxml test.html > test.html.x
>
>The test file is attached. You will notice that in the output, the comment
>line with the RCS tag is removed.

The relevant line is

  <! RCS id: $Id: tidy_comment_test.html,v 1.5 1999/05/21 16:01:18 lars Exp $>

And yes, Tidy removes it. I don't think we should change anything to
allow this construct, you could rather use a processing instruction,
i.e.

  <? RCS id: $Id: tidy_comment_test.html,v 1.5 1999/05/21 16:01:18 lars Exp $>

or a real comment

  <!-- RCS id: $Id: tidy_comment_test.html,v 1.5 1999/05/21 16:01:18 lars Exp $-->

That'd be more appropriate.
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Friday, 15 June 2001 16:05:47 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT