Suspected bug in htmltidy

Running the version for Linux/x86 (vers 1st January 2002; built on Jan 
27 2002, at 23:33:07)

I think it gives spurious warnings about "Missing <li>" and inserts 
spurious ones if you use "</li>" with nested lists.

Consider (this is mangled from an auto-generated index):

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>Contents</title>
<link href="TxtMan.css" rel="stylesheet" type="text/css">
</head>
<body class="ind">
<ol>
<li>First</li>
<ol>
<li>Part A</li>
<li>Part B</li>
</ol>
<li>Second</li>
<ol>
<li>Part A</li>
<li>Part B</li>
</ol>
</ol>
</body>
</html>

Htmltidy bleats about "missing <li>" at the two marked "<ol>"s and 
inserts unwanted "<li>"s in front. All is OK if you skip the "</li>"s.

I suppose you'll tell me to change my index program now.....

-- 
John Collins  (jmc @ xisl.com) Xi Software Ltd www.xisl.com Tel: +44 1707 886100
Direct Tel: +44 (0)1707 886110 (W) (0)1707 883174 (H) +44 (0)7799 113162 (Mob) 

Received on Monday, 10 June 2002 17:41:32 UTC