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

TIDY not generating proper XML comments

From: Serge Knystautas <sergek@lokitech.com>
Date: Mon, 13 Sep 1999 10:30:50 -0400
Message-ID: <37DD0A9A.28034D2D@lokitech.com>
To: html-tidy@w3.org
I converted the following document from HTML to XHTML using Tidy...

<html>
<body>
<!-- -- -->
</body>
</html>

appears as....

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
<html xmlns="http://www.w3.org/TR/xhtml1">
<head>
<title></title>
</head>
<body>
<!-- -- -->
</body>
</html>


Unfortunately, <!-- ---- --> is not valid in XML.  It seems that there
is code in there to prevent it, but it's not quite working.  I'm
actually using jTIDY, but can reproduce this error in regular ol' TIDY.

Serge Knystautas
Loki Technologies
http://www.lokitech.com
Received on Monday, 13 September 1999 10:31:00 GMT

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