W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 1999

RE: Tidy (oct22) failed to parse comments

From: Randy Waki <rwaki@sunscreen.whizbang.com>
Date: Mon, 22 Nov 1999 11:33:15 -0700
To: "Bob Bagwill" <robert.bagwill@nist.gov>
Cc: <html-tidy@w3.org>
Message-ID: <000201bf3518$09f52050$28eee13f@whizbang.com>
Bob Bagwill wrote:
> At 05:47 PM 11/20/99 -0700, Randy Waki wrote:
> >For XML, Tidy could fix comments by examining the characters between the
> ><!-- and the -->. In runs of two or more consecutive hyphens, replace
> >other hyphen with a space. If the last character is a hyphen, replace it
> >with a space.
> How about replacing them with the character entities ndash or
> mdash instead?

Aha! Although character entities aren't recognized in comments, they
should be recognized in <script> elements. So I think there is an
additional option:

  - Parse comments for <script> elements and change hyphen+hyphen to
    &#45;&#45; (or maybe -&#45;).

(&ndash; and &mdash; wouldn't translate to quite the right character.)

Received on Monday, 22 November 1999 13:35:17 UTC

This archive was generated by hypermail 2.3.1 : Friday, 13 July 2018 08:58:58 UTC