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:04:33 -0700
To: <Todd_Lewis@unc.edu>
Cc: <html-tidy@w3.org>
Message-ID: <000101bf3514$07bf2a50$28eee13f@whizbang.com>
Todd M. Lewis wrote:
> 
> Does this mean the old trick of
> hiding Javascript in HTML comments is not going to work in XML-ized
> pages? Can you even have Javascript in XML-ized pages?

Good question! It sure looks like Javascript's -- operator is illegal
in XML comments.

I'm not sure what Tidy should do. Some options that come to mind
(applicable only when the output is XML, of course):

  - Corrupt the script by changing hyphen+hyphen to hyphen+space.
  - Output illegal XML by leaving hyphen+hyphen as is.
  - Parse comments for <script> elements and move them out of the comment.

Randy
Received on Monday, 22 November 1999 13:07:12 GMT

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