W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2000

RE: Bug Report: "--" in comments

From: Randy Waki <rwaki@flipdog.com>
Date: Wed, 6 Sep 2000 11:31:45 -0600
To: "Evan Lenz" <elenz@xyzfind.com>, <html-tidy@w3.org>
Message-ID: <002d01c01828$53cf58f0$51eee13f@rwaki>
Evan Lenz wrote:
> 
> Tidy, in XHTML mode, currently allows "--" to be output in comments, which
> violates XML well-formedness.

Do you have an example?  Is this by any chance JavaScript embedded in
comments?  Except for JavaScript, Tidy has been changing illegal runs of
"--" into "==" just fine for us.

Note that JavaScript embedded in comments is an exception because of
JavaScript's -- operator.  Tidy can't break up the -- operator without
affecting the script.  If this is what's happening, you might check the
thread titled "xml parsing error for < character" for a possible
solution (go to
http://lists.w3.org/Archives/Public/html-tidy/2000JulSep/thread.html
and search for "< character").

--Randy
Received on Wednesday, 6 September 2000 13:33:30 GMT

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